From 98e82e1dbc53d4e06351310658afe964b3361409 Mon Sep 17 00:00:00 2001 From: "hinoka@google.com" Date: Mon, 21 Apr 2014 18:47:32 +0000 Subject: [PATCH] --ignore_deps for apply_issue Bot_update takes care of running gclient sync after apply_issue, so this is unnecessary. BUG= Review URL: https://codereview.chromium.org/242433002 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@265031 0039d316-1c4b-4281-b951-d872f2087c98 --- apply_issue.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apply_issue.py b/apply_issue.py index 30ebf79a4b..75ea60918d 100755 --- a/apply_issue.py +++ b/apply_issue.py @@ -87,6 +87,8 @@ def main(): 'is detected.') parser.add_option('-b', '--base_ref', help='Base git ref to patch on top of, ' 'used for verification.') + parser.add_option('-d', '--ignore_deps', action='store_true', + help='Don\'t run gclient sync on DEPS changes.') options, args = parser.parse_args() if options.password and options.private_key_file: @@ -218,7 +220,8 @@ def main(): print('Checkout path=%s' % scm_obj.project_path) return 1 - if 'DEPS' in map(os.path.basename, patchset.filenames): + if ('DEPS' in map(os.path.basename, patchset.filenames) + and not options.ignore_deps): gclient_root = gclient_utils.FindGclientRoot(full_dir) if gclient_root and scm_type: print(