Mercurial > hg-stable
changeset 18318:948f495fb230
localrepo: drop unnecessary check on wlock unlock
Calling out to dirstate one line before guarantees that it'll be in the filecache.
author | Idan Kamara <idankk86@gmail.com> |
---|---|
date | Thu, 10 Jan 2013 23:57:03 +0200 |
parents | 365fecd984c7 |
children | e350ce798b63 |
files | mercurial/localrepo.py |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/localrepo.py Sun Dec 16 20:33:00 2012 +0200 +++ b/mercurial/localrepo.py Thu Jan 10 23:57:03 2013 +0200 @@ -1033,9 +1033,7 @@ def unlock(): self.dirstate.write() - ce = self._filecache.get('dirstate') - if ce: - ce.refresh() + self._filecache['dirstate'].refresh() l = self._lock(self.join("wlock"), wait, unlock, self.invalidatedirstate, _('working directory of %s') %