diff options
-rw-r--r-- | project.py | 4 | ||||
-rwxr-xr-x | repo | 3 | ||||
-rw-r--r-- | subcmds/info.py | 3 | ||||
-rw-r--r-- | subcmds/overview.py | 3 | ||||
-rw-r--r-- | subcmds/sync.py | 3 | ||||
-rw-r--r-- | subcmds/upload.py | 3 |
6 files changed, 17 insertions, 2 deletions
@@ -1041,7 +1041,7 @@ class Project(object): | |||
1041 | verbose=False, | 1041 | verbose=False, |
1042 | output_redir=None, | 1042 | output_redir=None, |
1043 | is_new=None, | 1043 | is_new=None, |
1044 | current_branch_only=False, | 1044 | current_branch_only=None, |
1045 | force_sync=False, | 1045 | force_sync=False, |
1046 | clone_bundle=True, | 1046 | clone_bundle=True, |
1047 | tags=True, | 1047 | tags=True, |
@@ -1116,7 +1116,7 @@ class Project(object): | |||
1116 | and self._ApplyCloneBundle(initial=is_new, quiet=quiet, verbose=verbose)): | 1116 | and self._ApplyCloneBundle(initial=is_new, quiet=quiet, verbose=verbose)): |
1117 | is_new = False | 1117 | is_new = False |
1118 | 1118 | ||
1119 | if not current_branch_only: | 1119 | if current_branch_only is None: |
1120 | if self.sync_c: | 1120 | if self.sync_c: |
1121 | current_branch_only = True | 1121 | current_branch_only = True |
1122 | elif not self.manifest._loaded: | 1122 | elif not self.manifest._loaded: |
@@ -324,6 +324,9 @@ def InitParser(parser, gitc_init=False): | |||
324 | group.add_option(*cbr_opts, | 324 | group.add_option(*cbr_opts, |
325 | dest='current_branch_only', action='store_true', | 325 | dest='current_branch_only', action='store_true', |
326 | help='fetch only current manifest branch from server') | 326 | help='fetch only current manifest branch from server') |
327 | group.add_option('--no-current-branch', | ||
328 | dest='current_branch_only', action='store_false', | ||
329 | help='fetch all manifest branches from server') | ||
327 | group.add_option('--no-tags', | 330 | group.add_option('--no-tags', |
328 | dest='tags', default=True, action='store_false', | 331 | dest='tags', default=True, action='store_false', |
329 | help="don't fetch tags in the manifest") | 332 | help="don't fetch tags in the manifest") |
diff --git a/subcmds/info.py b/subcmds/info.py index 8e017ed8..2be56109 100644 --- a/subcmds/info.py +++ b/subcmds/info.py | |||
@@ -39,6 +39,9 @@ class Info(PagedCommand): | |||
39 | p.add_option('-c', '--current-branch', | 39 | p.add_option('-c', '--current-branch', |
40 | dest="current_branch", action="store_true", | 40 | dest="current_branch", action="store_true", |
41 | help="consider only checked out branches") | 41 | help="consider only checked out branches") |
42 | p.add_option('--no-current-branch', | ||
43 | dest='current_branch', action='store_false', | ||
44 | help='consider all local branches') | ||
42 | # Turn this into a warning & remove this someday. | 45 | # Turn this into a warning & remove this someday. |
43 | p.add_option('-b', | 46 | p.add_option('-b', |
44 | dest='current_branch', action='store_true', | 47 | dest='current_branch', action='store_true', |
diff --git a/subcmds/overview.py b/subcmds/overview.py index 4f62f94f..202a5eba 100644 --- a/subcmds/overview.py +++ b/subcmds/overview.py | |||
@@ -37,6 +37,9 @@ are displayed. | |||
37 | p.add_option('-c', '--current-branch', | 37 | p.add_option('-c', '--current-branch', |
38 | dest="current_branch", action="store_true", | 38 | dest="current_branch", action="store_true", |
39 | help="Consider only checked out branches") | 39 | help="Consider only checked out branches") |
40 | p.add_option('--no-current-branch', | ||
41 | dest='current_branch', action='store_false', | ||
42 | help='consider all local branches') | ||
40 | # Turn this into a warning & remove this someday. | 43 | # Turn this into a warning & remove this someday. |
41 | p.add_option('-b', | 44 | p.add_option('-b', |
42 | dest='current_branch', action='store_true', | 45 | dest='current_branch', action='store_true', |
diff --git a/subcmds/sync.py b/subcmds/sync.py index 9f8de9e5..f06c61c5 100644 --- a/subcmds/sync.py +++ b/subcmds/sync.py | |||
@@ -213,6 +213,9 @@ later is required to fix a server side protocol bug. | |||
213 | p.add_option('-c', '--current-branch', | 213 | p.add_option('-c', '--current-branch', |
214 | dest='current_branch_only', action='store_true', | 214 | dest='current_branch_only', action='store_true', |
215 | help='fetch only current branch from server') | 215 | help='fetch only current branch from server') |
216 | p.add_option('--no-current-branch', | ||
217 | dest='current_branch_only', action='store_false', | ||
218 | help='fetch all branches from server') | ||
216 | p.add_option('-m', '--manifest-name', | 219 | p.add_option('-m', '--manifest-name', |
217 | dest='manifest_name', | 220 | dest='manifest_name', |
218 | help='temporary manifest to use for this sync', metavar='NAME.xml') | 221 | help='temporary manifest to use for this sync', metavar='NAME.xml') |
diff --git a/subcmds/upload.py b/subcmds/upload.py index 57434b18..c497d877 100644 --- a/subcmds/upload.py +++ b/subcmds/upload.py | |||
@@ -174,6 +174,9 @@ Gerrit Code Review: https://www.gerritcodereview.com/ | |||
174 | p.add_option('-c', '--current-branch', | 174 | p.add_option('-c', '--current-branch', |
175 | dest='current_branch', action='store_true', | 175 | dest='current_branch', action='store_true', |
176 | help='Upload current git branch.') | 176 | help='Upload current git branch.') |
177 | p.add_option('--no-current-branch', | ||
178 | dest='current_branch', action='store_false', | ||
179 | help='Upload all git branches.') | ||
177 | # Turn this into a warning & remove this someday. | 180 | # Turn this into a warning & remove this someday. |
178 | p.add_option('--cbr', | 181 | p.add_option('--cbr', |
179 | dest='current_branch', action='store_true', | 182 | dest='current_branch', action='store_true', |