# HG changeset patch # User Yuya Nishihara # Date 1401538866 -32400 # 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 -r 2a095d3442e0 -r bc773e9505e3 mercurial/context.py --- a/mercurial/context.py Thu Jun 05 15:24:29 2014 +0530 +++ b/mercurial/context.py Sat May 31 21:21:06 2014 +0900 @@ -1375,7 +1375,7 @@ 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,