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

Unified Diff: git_tools.py

Issue 641693004: Fix deps2git cache bootstrapping and make it more verbose (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/deps2git.git@master
Patch Set: Pass print_fn through Created 6 years, 2 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 | « deps2git.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: git_tools.py
diff --git a/git_tools.py b/git_tools.py
index 5f52f9e593dc68ebadd6c988c056582c45e69af5..6cfba8c26d79ab4a29549241fc55c0c9d9dd6c44 100755
--- a/git_tools.py
+++ b/git_tools.py
@@ -149,14 +149,15 @@ def Clone(git_url, git_repo, is_mirror, out_buffer=None):
return Git(None, cmd, is_mirror=is_mirror, out_buffer=out_buffer)
-def PopulateCache(git_url, shallow=False):
+def PopulateCache(git_url, shallow=False, print_fn=None):
# --shallow by default checks out 10000 revision, but for really large
# repos like adobe ones, we want significantly less than 10000.
depth = None
if shallow and 'adobe' in git_url:
depth = 10
- mirror = git_cache.Mirror(git_url, print_func=lambda *args: None)
- mirror.populate(depth=depth, shallow=shallow, ignore_lock=True)
+ mirror = git_cache.Mirror(git_url, print_func=print_fn)
+ mirror.populate(depth=depth, shallow=shallow, bootstrap=True,
+ verbose=True, ignore_lock=True)
return mirror.mirror_path
« no previous file with comments | « deps2git.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698