relink/progress: correctly handle the no file to relink case stable
authorBenoit Boissinot <benoit.boissinot@ens-lyon.org>
Sat, 01 May 2010 14:36:48 +0200
branchstable
changeset 11052 d6094402de14
parent 11035 e4f911ce21de
child 11053 59d0d715fbfa
relink/progress: correctly handle the no file to relink case
hgext/relink.py
--- a/hgext/relink.py	Thu Apr 08 11:00:46 2010 -0400
+++ b/hgext/relink.py	Sat May 01 14:36:48 2010 +0200
@@ -145,7 +145,7 @@
         except OSError, inst:
             ui.warn('%s: %s\n' % (tgt, str(inst)))
 
-    ui.progress(_('relinking'), None, f, _(' files'), total)
+    ui.progress(_('relinking'), None, unit=_(' files'), total=total)
 
     ui.status(_('relinked %d files (%d bytes reclaimed)\n') %
               (relinked, savedbytes))