From patchwork Fri Oct 10 22:20:41 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [09,of,16,V3] purge: access status fields by name rather than index From: Martin von Zweigbergk X-Patchwork-Id: 6199 Message-Id: <6aa0450f62f0411799be.1412979641@handduk2.mtv.corp.google.com> To: mercurial-devel@selenic.com Date: Fri, 10 Oct 2014 15:20:41 -0700 # HG changeset patch # User Martin von Zweigbergk # Date 1412357923 25200 # Fri Oct 03 10:38:43 2014 -0700 # Node ID 6aa0450f62f0411799bebba8e44a747c4afeb154 # Parent 413124c790d27e6939750e44bc369ba5141e2d8a purge: access status fields by name rather than index diff --git a/hgext/purge.py b/hgext/purge.py --- a/hgext/purge.py +++ b/hgext/purge.py @@ -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)