Sfoglia il codice sorgente

Add --ignore-dep-type option to gclient sync

This option is already available for gclient revinfo. Adding it
to gclient sync means we get to reuse the filtering logic
already being used for revinfo.

Bug: 411662322
Change-Id: I6bd5e1cffe583247a497358ada1e0b82d0be986d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6481194
Reviewed-by: Scott Lee <ddoman@chromium.org>
Commit-Queue: Gavin Mak <gavinmak@google.com>
Gavin Mak 4 mesi fa
parent
commit
474ecb8462
1 ha cambiato i file con 6 aggiunte e 0 eliminazioni
  1. 6 0
      gclient.py

+ 6 - 0
gclient.py

@@ -3977,6 +3977,12 @@ def CMDsync(parser, args):
                       dest='experiments',
                       default=[],
                       help='Which experiments should be enabled.')
+    parser.add_option('--ignore-dep-type',
+                      choices=['git', 'cipd', 'gcs'],
+                      action='append',
+                      default=[],
+                      help='Specify to skip processing of a certain type of '
+                      'dep.')
     (options, args) = parser.parse_args(args)
     client = GClient.LoadCurrentConfig(options)