[PATCH 08 of 11] convert: specify unit for ui.progress when scanning paths

Anton Shestakov av6 at dwimlabs.net
Fri Mar 11 09:57:40 EST 2016


# HG changeset patch
# User Anton Shestakov <av6 at dwimlabs.net>
# Date 1457706604 -28800
#      Fri Mar 11 22:30:04 2016 +0800
# Node ID df1bf309225aa967bd2214401f9dd96b060081ec
# Parent  37559017a0e779b1aa0da0f7635017796aa70026
convert: specify unit for ui.progress when scanning paths

diff --git a/hgext/convert/subversion.py b/hgext/convert/subversion.py
--- a/hgext/convert/subversion.py
+++ b/hgext/convert/subversion.py
@@ -728,7 +728,7 @@ class svn_source(converter_source):
 
         for i, (path, ent) in enumerate(paths):
             self.ui.progress(_('scanning paths'), i, item=path,
-                             total=len(paths))
+                             total=len(paths), unit=_('paths'))
             entrypath = self.getrelpath(path)
 
             kind = self._checkpath(entrypath, revnum)


More information about the Mercurial-devel mailing list