changeset 22920:e049338d1a7b

purge: access status fields by name rather than index
author Martin von Zweigbergk <martinvonz@gmail.com>
date Fri, 03 Oct 2014 10:38:43 -0700
parents 1982bdb7e2cc
children 75e7d4a0f135
files hgext/purge.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/purge.py	Fri Oct 03 22:10:08 2014 -0700
+++ b/hgext/purge.py	Fri Oct 03 10:38:43 2014 -0700
@@ -102,7 +102,7 @@
     status = repo.status(match=match, ignored=opts['all'], unknown=True)
 
     if removefiles:
-        for f in sorted(status[4] + status[5]):
+        for f in sorted(status.unknown + status.ignored):
             if act:
                 ui.note(_('removing file %s\n') % f)
             remove(util.unlink, f)