# HG changeset patch # User Yuya Nishihara # Date 2014-05-31 12:21:06 # Node ID bc773e9505e373b2daf43e68aaafec1cde8871c1 # Parent 2a095d3442e0ba9e2b7a9a60b111e62bf29e47a2 workingctx: duplicate status list received at _poststatus hook basectx.status may reorder the list after workingctx._poststatus is called, so workingctx must copy it. Otherwise, wctx.deleted() would return "unknown" files, for example. diff --git a/mercurial/context.py b/mercurial/context.py --- a/mercurial/context.py +++ b/mercurial/context.py @@ -1375,7 +1375,7 @@ class workingctx(committablectx): susposed to be linking to. """ s[0] = self._filtersuspectsymlink(s[0]) - self._status = s + self._status = s[:] return s def _dirstatestatus(self, match=None, ignored=False, clean=False,