Mercurial > hg
comparison mercurial/context.py @ 21593:b2d6bc6f9c3e
committablectx: cache _status in _poststatus
A future patch will remove the old workingctx.status which caches the status of
the working directory, therefore we now cache this status in the poststatus
hook of committablectx.
author | Sean Farley <sean.michael.farley@gmail.com> |
---|---|
date | Thu, 24 Apr 2014 17:42:53 -0500 |
parents | 16f62b4203b1 |
children | 9e4567829129 |
comparison
equal
deleted
inserted
replaced
21592:16f62b4203b1 | 21593:b2d6bc6f9c3e |
---|---|
1311 We use this poststatus hook to filter out symlinks that might have | 1311 We use this poststatus hook to filter out symlinks that might have |
1312 accidentally ended up with the entire contents of the file they are | 1312 accidentally ended up with the entire contents of the file they are |
1313 susposed to be linking to. | 1313 susposed to be linking to. |
1314 """ | 1314 """ |
1315 s[0] = self._filtersuspectsymlink(s[0]) | 1315 s[0] = self._filtersuspectsymlink(s[0]) |
1316 self._status = s | |
1316 return s | 1317 return s |
1317 | 1318 |
1318 def _dirstatestatus(self, match=None, ignored=False, clean=False, | 1319 def _dirstatestatus(self, match=None, ignored=False, clean=False, |
1319 unknown=False): | 1320 unknown=False): |
1320 '''Gets the status from the dirstate -- internal use only.''' | 1321 '''Gets the status from the dirstate -- internal use only.''' |