summaryrefslogtreecommitdiffstats
path: root/subcmds/sync.py
diff options
context:
space:
mode:
Diffstat (limited to 'subcmds/sync.py')
-rw-r--r--subcmds/sync.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/subcmds/sync.py b/subcmds/sync.py
index 613cc81c..9b8a6122 100644
--- a/subcmds/sync.py
+++ b/subcmds/sync.py
@@ -94,7 +94,7 @@ later is required to fix a server side protocol bug.
94 94
95""" 95"""
96 96
97 def _Options(self, p): 97 def _Options(self, p, show_smart=True):
98 p.add_option('-l','--local-only', 98 p.add_option('-l','--local-only',
99 dest='local_only', action='store_true', 99 dest='local_only', action='store_true',
100 help="only update working tree, don't fetch") 100 help="only update working tree, don't fetch")
@@ -104,9 +104,10 @@ later is required to fix a server side protocol bug.
104 p.add_option('-d','--detach', 104 p.add_option('-d','--detach',
105 dest='detach_head', action='store_true', 105 dest='detach_head', action='store_true',
106 help='detach projects back to manifest revision') 106 help='detach projects back to manifest revision')
107 p.add_option('-s', '--smart-sync', 107 if show_smart:
108 dest='smart_sync', action='store_true', 108 p.add_option('-s', '--smart-sync',
109 help='smart sync using manifest from a known good build') 109 dest='smart_sync', action='store_true',
110 help='smart sync using manifest from a known good build')
110 111
111 g = p.add_option_group('repo Version options') 112 g = p.add_option_group('repo Version options')
112 g.add_option('--no-repo-verify', 113 g.add_option('--no-repo-verify',