Merge "repo_pull: Remove required -g param in repo_review" am: 781e401ba0
Original change: https://android-review.googlesource.com/c/platform/development/+/1363356 Change-Id: I88a5d2e4f6ecbc0d1676acbc556525ab15abe29a
This commit is contained in:
@@ -70,7 +70,6 @@ These are common queries:
|
|||||||
### Options
|
### Options
|
||||||
|
|
||||||
* `-g` or `--gerrit` specifies the URL of the Gerrit Code Review website.
|
* `-g` or `--gerrit` specifies the URL of the Gerrit Code Review website.
|
||||||
*(required)*
|
|
||||||
|
|
||||||
* `-b` or `--branch` specifies the local branch name that will be passed to
|
* `-b` or `--branch` specifies the local branch name that will be passed to
|
||||||
`repo start`.
|
`repo start`.
|
||||||
|
|||||||
@@ -31,9 +31,10 @@ except ImportError:
|
|||||||
from urllib2 import HTTPError # PY2
|
from urllib2 import HTTPError # PY2
|
||||||
|
|
||||||
from gerrit import (
|
from gerrit import (
|
||||||
add_reviewers, delete_reviewer, abandon, create_url_opener_from_args,
|
abandon, add_reviewers, create_url_opener_from_args, delete_reviewer,
|
||||||
delete_topic, query_change_lists, set_hashtags, set_review, set_topic,
|
delete_topic, find_gerrit_name, query_change_lists, set_hashtags,
|
||||||
submit)
|
set_review, set_topic, submit
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def _get_labels_from_args(args):
|
def _get_labels_from_args(args):
|
||||||
@@ -87,8 +88,7 @@ def _parse_args():
|
|||||||
parser = argparse.ArgumentParser()
|
parser = argparse.ArgumentParser()
|
||||||
|
|
||||||
parser.add_argument('query', help='Change list query string')
|
parser.add_argument('query', help='Change list query string')
|
||||||
parser.add_argument('-g', '--gerrit', required=True,
|
parser.add_argument('-g', '--gerrit', help='Gerrit review URL')
|
||||||
help='Gerrit review URL')
|
|
||||||
|
|
||||||
parser.add_argument('--gitcookies',
|
parser.add_argument('--gitcookies',
|
||||||
default=os.path.expanduser('~/.gitcookies'),
|
default=os.path.expanduser('~/.gitcookies'),
|
||||||
|
|||||||
Reference in New Issue
Block a user