mercurial/similar.py
changeset 28468 0d6b3630b9a3
parent 27359 a56c47ed3885
child 29337 f72d0c2148da
--- a/mercurial/similar.py	Fri Mar 11 20:18:41 2016 +0800
+++ b/mercurial/similar.py	Fri Mar 11 22:29:20 2016 +0800
@@ -25,14 +25,15 @@
     # Get hashes of removed files.
     hashes = {}
     for i, fctx in enumerate(removed):
-        repo.ui.progress(_('searching for exact renames'), i, total=numfiles)
+        repo.ui.progress(_('searching for exact renames'), i, total=numfiles,
+                         unit=_('files'))
         h = util.sha1(fctx.data()).digest()
         hashes[h] = fctx
 
     # For each added file, see if it corresponds to a removed file.
     for i, fctx in enumerate(added):
         repo.ui.progress(_('searching for exact renames'), i + len(removed),
-                total=numfiles)
+                total=numfiles, unit=_('files'))
         h = util.sha1(fctx.data()).digest()
         if h in hashes:
             yield (hashes[h], fctx)
@@ -49,7 +50,7 @@
     copies = {}
     for i, r in enumerate(removed):
         repo.ui.progress(_('searching for similar files'), i,
-                         total=len(removed))
+                         total=len(removed), unit=_('files'))
 
         # lazily load text
         @util.cachefunc