equal
deleted
inserted
replaced
1315 def persistmanifestcache(): |
1315 def persistmanifestcache(): |
1316 repo = reporef() |
1316 repo = reporef() |
1317 self = manifestrevlogref() |
1317 self = manifestrevlogref() |
1318 if repo is None or self is None: |
1318 if repo is None or self is None: |
1319 return |
1319 return |
1320 if repo.manifestlog._revlog is not self: |
1320 if repo.manifestlog.getstorage(b'') is not self: |
1321 # there's a different manifest in play now, abort |
1321 # there's a different manifest in play now, abort |
1322 return |
1322 return |
1323 self._fulltextcache.write() |
1323 self._fulltextcache.write() |
1324 |
1324 |
1325 if repo._currentlock(repo._lockref) is not None: |
1325 if repo._currentlock(repo._lockref) is not None: |
1581 def __init__(self, manifestlog): |
1581 def __init__(self, manifestlog): |
1582 self._manifestlog = manifestlog |
1582 self._manifestlog = manifestlog |
1583 self._manifestdict = manifestdict() |
1583 self._manifestdict = manifestdict() |
1584 |
1584 |
1585 def _storage(self): |
1585 def _storage(self): |
1586 return self._manifestlog._revlog |
1586 return self._manifestlog.getstorage(b'') |
1587 |
1587 |
1588 def new(self): |
1588 def new(self): |
1589 return memmanifestctx(self._manifestlog) |
1589 return memmanifestctx(self._manifestlog) |
1590 |
1590 |
1591 def copy(self): |
1591 def copy(self): |
1617 #self.p1, self.p2 = store.parents(node) |
1617 #self.p1, self.p2 = store.parents(node) |
1618 #rev = store.rev(node) |
1618 #rev = store.rev(node) |
1619 #self.linkrev = store.linkrev(rev) |
1619 #self.linkrev = store.linkrev(rev) |
1620 |
1620 |
1621 def _storage(self): |
1621 def _storage(self): |
1622 return self._manifestlog._revlog |
1622 return self._manifestlog.getstorage(b'') |
1623 |
1623 |
1624 def node(self): |
1624 def node(self): |
1625 return self._node |
1625 return self._node |
1626 |
1626 |
1627 def new(self): |
1627 def new(self): |
1687 self._manifestlog = manifestlog |
1687 self._manifestlog = manifestlog |
1688 self._dir = dir |
1688 self._dir = dir |
1689 self._treemanifest = treemanifest() |
1689 self._treemanifest = treemanifest() |
1690 |
1690 |
1691 def _storage(self): |
1691 def _storage(self): |
1692 return self._manifestlog._revlog |
1692 return self._manifestlog.getstorage(b'') |
1693 |
1693 |
1694 def new(self, dir=''): |
1694 def new(self, dir=''): |
1695 return memtreemanifestctx(self._manifestlog, dir=dir) |
1695 return memtreemanifestctx(self._manifestlog, dir=dir) |
1696 |
1696 |
1697 def copy(self): |
1697 def copy(self): |