Add a little bit more context to a failure case for debugging reasons
Bug: 1110152
Change-Id: I4b525a62aa87ea98590741445b4273068edb7f6e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2332373
Reviewed-by: Edward Lesmes <ehmaldonado@chromium.org>
Commit-Queue: Anthony Polito <apolito@google.com>
diff --git a/gclient_scm.py b/gclient_scm.py
index c06e02b..a321920 100644
--- a/gclient_scm.py
+++ b/gclient_scm.py
@@ -588,7 +588,8 @@
subprocess2.capture(
['git', 'config', 'remote.%s.gclient-auto-fix-url' % self.remote],
cwd=self.checkout_path).strip() != 'False'):
- self.Print('_____ switching %s to a new upstream' % self.relpath)
+ self.Print('_____ switching %s from %s to new upstream %s' % (
+ self.relpath, current_url, url))
if not (options.force or options.reset):
# Make sure it's clean
self._CheckClean(revision)