diff mercurial/context.py @ 29942: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
line wrap: on
line diff
--- a/mercurial/context.py	Wed Sep 14 17:12:39 2016 +0200
+++ b/mercurial/context.py	Tue Sep 13 16:25:21 2016 -0700
@@ -532,7 +532,8 @@
 
     @propertycache
     def _manifestdelta(self):
-        return self._repo.manifest.readdelta(self._changeset.manifest)
+        mfnode = self._changeset.manifest
+        return self._repo.manifestlog[mfnode].readdelta()
 
     @propertycache
     def _parents(self):