hgext/relink.py
changeset 11354 412a6e749f8d
parent 11273 d1908cb95a82
child 11355 9011036ba79d
--- a/hgext/relink.py	Mon Jun 14 16:06:52 2010 -0400
+++ b/hgext/relink.py	Thu Jun 10 13:09:50 2010 +0200
@@ -90,7 +90,10 @@
         return st
 
     targets = []
+    total = len(candidates)
+    pos = 0
     for fn, st in candidates:
+        pos += 1
         srcpath = os.path.join(src, fn)
         tgt = os.path.join(dst, fn)
         ts = linkfilter(srcpath, tgt, st)
@@ -98,7 +101,9 @@
             ui.debug(_('not linkable: %s\n') % fn)
             continue
         targets.append((fn, ts.st_size))
+        ui.progress(_('pruning'), pos, fn, _(' files'), total)
 
+    ui.progress(_('pruning'), None)
     ui.status(_('pruned down to %d probably relinkable files\n') % len(targets))
     return targets