summary: remove unused code for listing ignored files
authorMartin von Zweigbergk <martinvonz@gmail.com>
Wed, 01 Oct 2014 12:50:18 -0700
changeset 22677 cbb4414a5603
parent 22676 a014fdc97154
child 22678 bf0b5bfc24b9
summary: remove unused code for listing ignored files The call to repo.status() does not request ignored files to be listed, so remove the code for printing them.
mercurial/commands.py
--- a/mercurial/commands.py	Wed Oct 01 14:48:42 2014 -0700
+++ b/mercurial/commands.py	Wed Oct 01 12:50:18 2014 -0700
@@ -5786,7 +5786,7 @@
             ui.write(' ' + m, label='log.bookmark')
         ui.write('\n', label='log.bookmark')
 
-    st = list(repo.status(unknown=True))[:6]
+    st = list(repo.status(unknown=True))[:5]
 
     c = repo.dirstate.copies()
     copied, renamed = [], []
@@ -5814,7 +5814,6 @@
               ui.label(_('%d copied'), 'status.copied'),
               ui.label(_('%d deleted'), 'status.deleted'),
               ui.label(_('%d unknown'), 'status.unknown'),
-              ui.label(_('%d ignored'), 'status.ignored'),
               ui.label(_('%d unresolved'), 'resolve.unresolved'),
               ui.label(_('%d subrepos'), 'status.modified')]
     t = []
@@ -5834,7 +5833,7 @@
     elif (parents[0].closesbranch() and
           pnode in repo.branchheads(branch, closed=True)):
         t += _(' (head closed)')
-    elif not (st[0] or st[1] or st[2] or st[3] or st[4] or st[9]):
+    elif not (st[0] or st[1] or st[2] or st[3] or st[4] or st[8]):
         t += _(' (clean)')
         cleanworkdir = True
     elif pnode not in bheads: