Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(36)

Unified Diff: apply_issue.py

Issue 1988583002: Add --extra_patchlevel flag to apply_issue.py (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Fixed nit Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apply_issue.py
diff --git a/apply_issue.py b/apply_issue.py
index b0d9176316fc2b8470ed4a57a5a3c1f998517821..5e60887353bdf6a67d7d604b7898ffb38f86b066 100755
--- a/apply_issue.py
+++ b/apply_issue.py
@@ -92,6 +92,10 @@ def _get_arg_parser():
help='Don\'t patch specified file(s).')
parser.add_option('-d', '--ignore_deps', action='store_true',
help='Don\'t run gclient sync on DEPS changes.')
+ parser.add_option('--extra_patchlevel', type='int',
+ help='Number of directories the patch level number should '
+ 'be incremented (useful for patches from repos with '
+ 'different directory hierarchies).')
auth.add_auth_options(parser)
return parser
@@ -255,6 +259,8 @@ def main():
if patch.filename not in options.blacklist]
for patch in patchset.patches:
print(patch)
+ if options.extra_patchlevel:
+ patch.patchlevel += options.extra_patchlevel
full_dir = os.path.abspath(options.root_dir)
scm_type = scm.determine_scm(full_dir)
if scm_type == 'svn':
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698