diff hgext/largefiles/lfutil.py @ 23892:f2b6f37d537b

largefiles: show progress when checking standin hashes in outgoing changesets This checking can take a huge amount of time and we should give user a hint that something is going on.
author Mads Kiilerich <madski@unity3d.com>
date Fri, 16 Jan 2015 19:51:25 +0100
parents 95f238cafb32
children d414c28db84d
line wrap: on
line diff
--- a/hgext/largefiles/lfutil.py	Wed Jan 14 17:09:55 2015 -0800
+++ b/hgext/largefiles/lfutil.py	Fri Jan 16 19:51:25 2015 +0100
@@ -420,7 +420,9 @@
     return filelist
 
 def getlfilestoupload(repo, missing, addfunc):
-    for n in missing:
+    for i, n in enumerate(missing):
+        repo.ui.progress(_('finding outgoing largefiles'), i,
+            unit=_('revision'), total=len(missing))
         parents = [p for p in repo.changelog.parents(n) if p != node.nullid]
 
         oldlfstatus = repo.lfstatus
@@ -447,6 +449,7 @@
         for fn in files:
             if isstandin(fn) and fn in ctx:
                 addfunc(fn, ctx[fn].data().strip())
+    repo.ui.progress(_('finding outgoing largefiles'), None)
 
 def updatestandinsbymatch(repo, match):
     '''Update standins in the working directory according to specified match