Lines Matching full:url

121     """Load username and password from .gitcookies and return a URL opener with
128 # Create URL opener with authentication handler
135 """Create URL opener from command line arguments."""
144 print('error: Please check the Gerrit Code Review URL or follow the '
182 url = gerrit + '/a/changes/?' + urlencode(data)
184 response_file = url_opener.open(url)
191 def _make_json_post_request(url_opener, url, data, method='POST'): argument
192 """Open an URL request and decode its response.
205 request = Request(url, data, headers)
228 url = '{}/a/changes/{}/revisions/current/review'.format(
237 return _make_json_post_request(url_opener, url, data)
243 url = '{}/a/changes/{}/submit'.format(gerrit_url, change_id)
245 return _make_json_post_request(url_opener, url, {})
251 url = '{}/a/changes/{}/abandon'.format(gerrit_url, change_id)
257 return _make_json_post_request(url_opener, url, data)
263 url = '{}/a/changes/{}/restore'.format(gerrit_url, change_id)
265 return _make_json_post_request(url_opener, url, {})
271 url = '{}/a/changes/{}/topic'.format(gerrit_url, change_id)
273 return _make_json_post_request(url_opener, url, data, method='PUT')
279 url = '{}/a/changes/{}/topic'.format(gerrit_url, change_id)
281 return _make_json_post_request(url_opener, url, {}, method='DELETE')
288 url = '{}/a/changes/{}/hashtags'.format(gerrit_url, change_id)
296 return _make_json_post_request(url_opener, url, data)
302 url = '{}/a/changes/{}/revisions/current/review'.format(
309 return _make_json_post_request(url_opener, url, data)
315 url = '{}/a/changes/{}/reviewers/{}/delete'.format(
318 return _make_json_post_request(url_opener, url, {})
324 url = '{}/a/changes/{}/revisions/{}/patch'.format(
327 response_file = url_opener.open(url)
347 raise ValueError('cannot find gerrit URL from manifest')
354 parser.add_argument('-g', '--gerrit', help='Gerrit review URL')