Mercurial > hg
changeset 18317:365fecd984c7
dirstate: refresh _branch cache entry after writing it
author | Idan Kamara <idankk86@gmail.com> |
---|---|
date | Sun, 16 Dec 2012 20:33:00 +0200 |
parents | f36375576ed5 |
children | 948f495fb230 |
files | mercurial/dirstate.py |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/dirstate.py Mon Dec 17 15:25:45 2012 +0200 +++ b/mercurial/dirstate.py Sun Dec 16 20:33:00 2012 +0200 @@ -265,6 +265,12 @@ try: f.write(self._branch + '\n') f.close() + + # make sure filecache has the correct stat info for _branch after + # replacing the underlying file + ce = self._filecache['_branch'] + if ce: + ce.refresh() except: # re-raises f.discard() raise