comparison mercurial/context.py @ 21718:bc773e9505e3

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.
author Yuya Nishihara <yuya@tcha.org>
date Sat, 31 May 2014 21:21:06 +0900
parents 14514dd542aa
children ee29b0bb1619
comparison
equal deleted inserted replaced
21717:2a095d3442e0 21718:bc773e9505e3
1373 We use this poststatus hook to filter out symlinks that might have 1373 We use this poststatus hook to filter out symlinks that might have
1374 accidentally ended up with the entire contents of the file they are 1374 accidentally ended up with the entire contents of the file they are
1375 susposed to be linking to. 1375 susposed to be linking to.
1376 """ 1376 """
1377 s[0] = self._filtersuspectsymlink(s[0]) 1377 s[0] = self._filtersuspectsymlink(s[0])
1378 self._status = s 1378 self._status = s[:]
1379 return s 1379 return s
1380 1380
1381 def _dirstatestatus(self, match=None, ignored=False, clean=False, 1381 def _dirstatestatus(self, match=None, ignored=False, clean=False,
1382 unknown=False): 1382 unknown=False):
1383 '''Gets the status from the dirstate -- internal use only.''' 1383 '''Gets the status from the dirstate -- internal use only.'''