# HG changeset patch # User Martin von Zweigbergk # Date 1493957500 25200 # Node ID e4a4ebfd9d8ee96412ee5909b1e4d97694fd55c2 # Parent c939fdce0fde77d4b1b03ba3402ee68f104be448 forget: access status fields by name, not index diff -r c939fdce0fde -r e4a4ebfd9d8e mercurial/cmdutil.py --- a/mercurial/cmdutil.py Wed May 03 18:26:57 2017 -0700 +++ b/mercurial/cmdutil.py Thu May 04 21:11:40 2017 -0700 @@ -2309,7 +2309,7 @@ forgot = [] s = repo.status(match=matchmod.badmatch(match, badfn), clean=True) - forget = sorted(s[0] + s[1] + s[3] + s[6]) + forget = sorted(s.modified + s.added + s.deleted + s.clean) if explicitonly: forget = [f for f in forget if match.exact(f)]