mercurial/commands.py
changeset 9617 fafd653134d0
parent 9606 69f8ac71ded1
parent 9608 d097bc2d1945
child 9618 d75a309a24b1
--- a/mercurial/commands.py	Mon Oct 19 00:36:52 2009 -0500
+++ b/mercurial/commands.py	Mon Oct 19 23:53:25 2009 -0500
@@ -2901,11 +2901,14 @@
     st = list(repo.status(unknown=True))[:7]
     ms = merge_.mergestate(repo)
     st.append([f for f in ms if f == 'u'])
-    labels = _('modified added removed deleted unknown ignored unresolved')
+    labels = [_('%d modified files'), _('%d added files'),
+              _('%d removed files'), _('%d deleted files'),
+              _('%d unknown files'), _('%d ignored files'),
+              _('%d unresolved files')]
     t = []
-    for i,l in enumerate(labels.split()):
-        if st[i]:
-            t.append('%d %s' % (len(st[i]), l))
+    for s,l in zip(st, labels):
+        if s:
+            t.append(l % len(s))
 
     t = ', '.join(t)