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.
This commit is contained in:
Yuya Nishihara 2014-05-31 21:21:06 +09:00
parent b97e831462
commit 0215b66d65

View File

@ -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,