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>
diff --git a/repo b/repo
index 4cddbf1..2af77ac 100755
--- a/repo
+++ b/repo
@@ -372,7 +372,7 @@
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 0170409..c230323 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 @@
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')