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

Unified Diff: recipe_modules/bot_update/resources/bot_update.py

Issue 1954083002: depot_tools: add debug logic to bot_update for gerrit patches (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: 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: recipe_modules/bot_update/resources/bot_update.py
diff --git a/recipe_modules/bot_update/resources/bot_update.py b/recipe_modules/bot_update/resources/bot_update.py
index df60837d5e4ae606a00cfc9199c66bf121ae8198..efee4783b0b8afa6084b70a2ab674950b84f0dfd 100755
--- a/recipe_modules/bot_update/resources/bot_update.py
+++ b/recipe_modules/bot_update/resources/bot_update.py
@@ -1135,6 +1135,8 @@ def apply_rietveld_issue(issue, patchset, root, server, _rev_map, _revision,
def apply_gerrit_ref(gerrit_repo, gerrit_ref, root, gerrit_reset):
gerrit_repo = gerrit_repo or 'origin'
assert gerrit_ref
+ print '===Applying gerrit ref==='
+ print 'Repo is %r, ref is %r, root is %r' % (gerrit_repo, gerrit_ref, root)
try:
base_rev = git('rev-parse', 'HEAD', cwd=root).strip()
git('retry', 'fetch', gerrit_repo, gerrit_ref, cwd=root, tries=1)
@@ -1311,13 +1313,17 @@ def ensure_checkout(solutions, revisions, first_sln, target_os, target_os_only,
if patch_url:
patches = get_svn_patch(patch_url)
+ print '===Processing patch solutions==='
already_patched = []
patch_root = patch_root or ''
+ print 'Patch root is %r' % patch_root
for solution in solutions:
+ print 'Processing solution %r' % solution['name']
if (patch_root == solution['name'] or
solution['name'].startswith(patch_root + '/')):
relative_root = solution['name'][len(patch_root) + 1:]
target = '/'.join([relative_root, 'DEPS']).lstrip('/')
+ print ' relative root is %r, target is %r' % (relative_root, target)
if patches:
apply_svn_patch(patch_root, patches, whitelist=[target])
already_patched.append(target)
« 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