Chromium Code Reviews| 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. |