[PATCH 08 of 15 v2] purge: access status fields by name rather than index
Martin von Zweigbergk
martinvonz at gmail.com
Sun Oct 5 01:08:05 CDT 2014
# HG changeset patch
# User Martin von Zweigbergk <martinvonz at gmail.com>
# Date 1412357923 25200
# Fri Oct 03 10:38:43 2014 -0700
# Node ID ddabc57548ae5b11f52a91e03190c90d008e6790
# Parent 8c36e6b906c1a85d5162f46b478cb1bcd897e8c9
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)
More information about the Mercurial-devel
mailing list