Mercurial > public > mercurial-scm > hg-stable
diff mercurial/context.py @ 21973:3178e4989202 stable 3.1
status: do not reverse deleted and unknown
When reversing a status, trading "added" and "removed" make sense.
Reversing "deleted" and "unknown" does not. We stop doing it.
The reversing is documented in place for the poor soul not even able to remember
the index of all status elements by heart.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Fri, 01 Aug 2014 13:01:35 -0700 |
parents | 8864528874f7 |
children | 7e871e771300 48e32c2c499b |
line wrap: on
line diff
--- a/mercurial/context.py Fri Aug 01 12:49:00 2014 -0700 +++ b/mercurial/context.py Fri Aug 01 13:01:35 2014 -0700 @@ -320,7 +320,8 @@ listunknown) if reversed: - r[1], r[2], r[3], r[4] = r[2], r[1], r[4], r[3] + # reverse added and removed + r[1], r[2] = r[2], r[1] if listsubrepos: for subpath, sub in scmutil.itersubrepos(ctx1, ctx2):