diff options
author | Raman Tenneti <rtenneti@google.com> | 2021-11-01 14:49:16 -0700 |
---|---|---|
committer | Raman Tenneti <rtenneti@google.com> | 2021-11-01 22:15:53 +0000 |
commit | 6251729cb43554dc5f63b80e96bcbce0ad688b40 (patch) | |
tree | a1948f77a15d27fa3f1b76368cd9a4f2a6dfe113 | |
parent | 11b30b91df1f0e03b53da970ec2588e85817bacc (diff) | |
download | git-repo-6251729cb43554dc5f63b80e96bcbce0ad688b40.tar.gz |
superproject: added 'implies -c' in the help of --use-superproject option.
sync.py: deleted unused import errno.
Tested:
$ ./run_tests
$ flake8 repo subcmds/sync.py
Bug: https://crbug.com/gerrit/15208
Change-Id: I2bb3098f5602ded3861e000100766041ad93b53d
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/322555
Reviewed-by: Mike Frysinger <vapier@google.com>
Tested-by: Raman Tenneti <rtenneti@google.com>
-rwxr-xr-x | repo | 2 | ||||
-rw-r--r-- | subcmds/sync.py | 3 |
2 files changed, 2 insertions, 3 deletions
@@ -372,7 +372,7 @@ def InitParser(parser, gitc_init=False): | |||
372 | help='filter for use with --partial-clone ' | 372 | help='filter for use with --partial-clone ' |
373 | '[default: %default]') | 373 | '[default: %default]') |
374 | group.add_option('--use-superproject', action='store_true', default=None, | 374 | group.add_option('--use-superproject', action='store_true', default=None, |
375 | help='use the manifest superproject to sync projects') | 375 | help='use the manifest superproject to sync projects; implies -c') |
376 | group.add_option('--no-use-superproject', action='store_false', | 376 | group.add_option('--no-use-superproject', action='store_false', |
377 | dest='use_superproject', | 377 | dest='use_superproject', |
378 | help='disable use of manifest superprojects') | 378 | help='disable use of manifest superprojects') |
diff --git a/subcmds/sync.py b/subcmds/sync.py index 01704095..c2303232 100644 --- a/subcmds/sync.py +++ b/subcmds/sync.py | |||
@@ -12,7 +12,6 @@ | |||
12 | # See the License for the specific language governing permissions and | 12 | # See the License for the specific language governing permissions and |
13 | # limitations under the License. | 13 | # limitations under the License. |
14 | 14 | ||
15 | import errno | ||
16 | import functools | 15 | import functools |
17 | import http.cookiejar as cookielib | 16 | import http.cookiejar as cookielib |
18 | import io | 17 | import io |
@@ -235,7 +234,7 @@ later is required to fix a server side protocol bug. | |||
235 | dest='fetch_submodules', action='store_true', | 234 | dest='fetch_submodules', action='store_true', |
236 | help='fetch submodules from server') | 235 | help='fetch submodules from server') |
237 | p.add_option('--use-superproject', action='store_true', | 236 | p.add_option('--use-superproject', action='store_true', |
238 | help='use the manifest superproject to sync projects') | 237 | help='use the manifest superproject to sync projects; implies -c') |
239 | p.add_option('--no-use-superproject', action='store_false', | 238 | p.add_option('--no-use-superproject', action='store_false', |
240 | dest='use_superproject', | 239 | dest='use_superproject', |
241 | help='disable use of manifest superprojects') | 240 | help='disable use of manifest superprojects') |