From 6251729cb43554dc5f63b80e96bcbce0ad688b40 Mon Sep 17 00:00:00 2001 From: Raman Tenneti Date: Mon, 1 Nov 2021 14:49:16 -0700 Subject: [PATCH] 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 Tested-by: Raman Tenneti --- repo | 2 +- subcmds/sync.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/repo b/repo index 4cddbf1e..2af77ace 100755 --- a/repo +++ b/repo @@ -372,7 +372,7 @@ def InitParser(parser, gitc_init=False): help='filter for use with --partial-clone ' '[default: %default]') group.add_option('--use-superproject', action='store_true', default=None, - help='use the manifest superproject to sync projects') + help='use the manifest superproject to sync projects; implies -c') group.add_option('--no-use-superproject', action='store_false', dest='use_superproject', 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 @@ # See the License for the specific language governing permissions and # limitations under the License. -import errno import functools import http.cookiejar as cookielib import io @@ -235,7 +234,7 @@ later is required to fix a server side protocol bug. dest='fetch_submodules', action='store_true', help='fetch submodules from server') p.add_option('--use-superproject', action='store_true', - help='use the manifest superproject to sync projects') + help='use the manifest superproject to sync projects; implies -c') p.add_option('--no-use-superproject', action='store_false', dest='use_superproject', help='disable use of manifest superprojects')