mercurial/manifest.py
changeset 30565 7fbc8a742b4d
parent 30443 4e1eab73c53d
child 31097 4a1486c73fdf
equal deleted inserted replaced
30564:07bcd1bf6151 30565:7fbc8a742b4d
  1379     def copy(self):
  1379     def copy(self):
  1380         memmf = memmanifestctx(self._repo)
  1380         memmf = memmanifestctx(self._repo)
  1381         memmf._manifestdict = self.read().copy()
  1381         memmf._manifestdict = self.read().copy()
  1382         return memmf
  1382         return memmf
  1383 
  1383 
       
  1384     @propertycache
       
  1385     def parents(self):
       
  1386         return self._revlog().parents(self._node)
       
  1387 
  1384     def read(self):
  1388     def read(self):
  1385         if not self._data:
  1389         if not self._data:
  1386             if self._node == revlog.nullid:
  1390             if self._node == revlog.nullid:
  1387                 self._data = manifestdict()
  1391                 self._data = manifestdict()
  1388             else:
  1392             else:
  1513     def copy(self):
  1517     def copy(self):
  1514         memmf = memtreemanifestctx(self._repo, dir=self._dir)
  1518         memmf = memtreemanifestctx(self._repo, dir=self._dir)
  1515         memmf._treemanifest = self.read().copy()
  1519         memmf._treemanifest = self.read().copy()
  1516         return memmf
  1520         return memmf
  1517 
  1521 
       
  1522     @propertycache
       
  1523     def parents(self):
       
  1524         return self._revlog().parents(self._node)
       
  1525 
  1518     def readdelta(self, shallow=False):
  1526     def readdelta(self, shallow=False):
  1519         '''Returns a manifest containing just the entries that are present
  1527         '''Returns a manifest containing just the entries that are present
  1520         in this manifest, but not in its p1 manifest. This is efficient to read
  1528         in this manifest, but not in its p1 manifest. This is efficient to read
  1521         if the revlog delta is already p1.
  1529         if the revlog delta is already p1.
  1522 
  1530