Show More
@@ -842,7 +842,14 b' class localrepository(repo.repository):' | |||||
842 | l.lock() |
|
842 | l.lock() | |
843 | return l |
|
843 | return l | |
844 |
|
844 | |||
845 | l = self._lock(self.sjoin("lock"), wait, self.store.write, |
|
845 | def unlock(): | |
|
846 | self.store.write() | |||
|
847 | for k, ce in self._filecache.items(): | |||
|
848 | if k == 'dirstate': | |||
|
849 | continue | |||
|
850 | ce.refresh() | |||
|
851 | ||||
|
852 | l = self._lock(self.sjoin("lock"), wait, unlock, | |||
846 | self.invalidate, _('repository %s') % self.origroot) |
|
853 | self.invalidate, _('repository %s') % self.origroot) | |
847 | self._lockref = weakref.ref(l) |
|
854 | self._lockref = weakref.ref(l) | |
848 | return l |
|
855 | return l |
General Comments 0
You need to be logged in to leave comments.
Login now