equal
deleted
inserted
replaced
1433 self.version = self._revlog.version |
1433 self.version = self._revlog.version |
1434 self._generaldelta = self._revlog._generaldelta |
1434 self._generaldelta = self._revlog._generaldelta |
1435 |
1435 |
1436 def _setupmanifestcachehooks(self, repo): |
1436 def _setupmanifestcachehooks(self, repo): |
1437 """Persist the manifestfulltextcache on lock release""" |
1437 """Persist the manifestfulltextcache on lock release""" |
1438 if not util.safehasattr(repo, '_lockref'): |
1438 if not util.safehasattr(repo, '_wlockref'): |
1439 return |
1439 return |
1440 |
1440 |
1441 self._fulltextcache._opener = repo.cachevfs |
1441 self._fulltextcache._opener = repo.cachevfs |
1442 if repo._currentlock(repo._lockref) is None: |
1442 if repo._currentlock(repo._wlockref) is None: |
1443 return |
1443 return |
1444 |
1444 |
1445 reporef = weakref.ref(repo) |
1445 reporef = weakref.ref(repo) |
1446 manifestrevlogref = weakref.ref(self) |
1446 manifestrevlogref = weakref.ref(self) |
1447 |
1447 |