From 0215b66d650ebff2c256c1954f0ac149aff8d854 Mon Sep 17 00:00:00 2001 From: Yuya Nishihara Date: Sat, 31 May 2014 21:21:06 +0900 Subject: [PATCH] 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. --- mercurial/context.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mercurial/context.py b/mercurial/context.py index 84cf1e14ab..bd30ae39f7 100644 --- 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,