Mercurial > hg-stable
diff mercurial/commands.py @ 22677:cbb4414a5603
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.
author | Martin von Zweigbergk <martinvonz@gmail.com> |
---|---|
date | Wed, 01 Oct 2014 12:50:18 -0700 |
parents | 6e431e1635b6 |
children | 21d5416b8a8a |
line wrap: on
line diff
--- 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: