From 486f1812ef65fde35ad0c63e3939e89dc1c876a3 Mon Sep 17 00:00:00 2001 From: Anthony Polito Date: Tue, 4 Aug 2020 23:40:33 +0000 Subject: [PATCH] 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 Commit-Queue: Anthony Polito --- gclient_scm.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gclient_scm.py b/gclient_scm.py index c06e02bb72..a321920067 100644 --- a/gclient_scm.py +++ b/gclient_scm.py @@ -588,7 +588,8 @@ class GitWrapper(SCMWrapper): 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)