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

Unified Diff: fetch.py

Issue 13582005: print chdirs for dryrun in fetch (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 7 years, 9 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: fetch.py
diff --git a/fetch.py b/fetch.py
index 8316ed48e7a85e938e800f2b5ac5a7f1c3011ed3..25f9174d8b971508a36bdc888b1790bd203608f9 100755
--- a/fetch.py
+++ b/fetch.py
@@ -96,6 +96,8 @@ class GclientGitSvnCheckout(GclientCheckout, GitCheckout):
# Configure git.
wd = os.path.join(self.base, self.root)
+ if self.dryrun:
+ print "cd %s" % wd
self.run_git(
'submodule', 'foreach',
'git config -f $toplevel/.git/config submodule.$name.ignore all',
@@ -115,6 +117,8 @@ class GclientGitSvnCheckout(GclientCheckout, GitCheckout):
subspec = submodules[path]
ospath = os.path.join(*path.split('/'))
wd = os.path.join(self.base, self.root, ospath)
+ if self.dryrun:
+ print "cd %s" % wd
self.run_git('svn', 'init', '--prefix=origin/', '-T',
subspec['svn_branch'], subspec['svn_url'], cwd=wd)
self.run_git('config', '--replace', 'svn-remote.svn.fetch',
« 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