Mercurial > public > mercurial-scm > hg
comparison mercurial/context.py @ 29938:a059b17352ef
manifest: add manifestctx.readdelta()
This adds an implementation of readdelta to the new manifestctx class and adds a
couple consumers of it. This currently appears to have some duplicate code, but
future patches cause this function to diverge when things like "shallow" are
introduced.
author | Durham Goode <durham@fb.com> |
---|---|
date | Tue, 13 Sep 2016 16:25:21 -0700 |
parents | 2c302c654451 |
children | 80be4436e4cc |
comparison
equal
deleted
inserted
replaced
29937:2c302c654451 | 29938:a059b17352ef |
---|---|
530 def _manifest(self): | 530 def _manifest(self): |
531 return self._repo.manifestlog[self._changeset.manifest].read() | 531 return self._repo.manifestlog[self._changeset.manifest].read() |
532 | 532 |
533 @propertycache | 533 @propertycache |
534 def _manifestdelta(self): | 534 def _manifestdelta(self): |
535 return self._repo.manifest.readdelta(self._changeset.manifest) | 535 mfnode = self._changeset.manifest |
536 return self._repo.manifestlog[mfnode].readdelta() | |
536 | 537 |
537 @propertycache | 538 @propertycache |
538 def _parents(self): | 539 def _parents(self): |
539 repo = self._repo | 540 repo = self._repo |
540 p1, p2 = repo.changelog.parentrevs(self._rev) | 541 p1, p2 = repo.changelog.parentrevs(self._rev) |