# HG changeset patch # User Martin von Zweigbergk # Date 1412193018 25200 # Node ID cbb4414a56034ff994503c48c19fc00090171eab # Parent a014fdc971544fadc50d350e6cc270bbada99e2a 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. diff -r a014fdc97154 -r cbb4414a5603 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: