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

Unified Diff: gclient_scm.py

Issue 372036: gclient: make sync more verbose on git (Closed)
Patch Set: Created 11 years, 1 month 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: gclient_scm.py
diff --git a/gclient_scm.py b/gclient_scm.py
index b9625f91b90cd23398c7d82d54bcf8c2d1c3f440..ab381bf8a48d8ad3cd43a59133c7080ef3774a9b 100644
--- a/gclient_scm.py
+++ b/gclient_scm.py
@@ -133,6 +133,12 @@ class GitWrapper(SCMWrapper):
elif len(components) == 2:
revision = components[1]
+ if options.verbose:
+ rev_str = ""
+ if revision:
+ rev_str = ' at %s' % revision
+ print("\n_____ %s%s" % (self.relpath, rev_str))
+
if not os.path.exists(self.checkout_path):
self._RunGit(['clone', url, self.checkout_path],
cwd=self._root_dir, redirect_stdout=False)
@@ -148,7 +154,8 @@ class GitWrapper(SCMWrapper):
new_base = revision
files = self._RunGit(['diff', new_base, '--name-only']).split()
file_list.extend([os.path.join(self.checkout_path, f) for f in files])
- self._RunGit(['rebase', new_base], redirect_stdout=False)
+ self._RunGit(['rebase', '-v', new_base], redirect_stdout=False)
M-A Ruel 2009/11/06 22:56:14 Shouldn't -v only when options.verbose?
+ print "Checked out revision %s." % self.revinfo(options, (), None)
def revert(self, options, args, file_list):
"""Reverts local modifications.
« 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