Patchwork [5,of,5] manifest: change changectx to access manifest via manifestlog

login
register
mail settings
Submitter Durham Goode
Date Aug. 9, 2016, 1:17 a.m.
Message ID <b2a96595919d8d0f4c6f.1470705434@dev8486.prn1.facebook.com>
Download mbox | patch
Permalink /patch/16223/
State Superseded
Headers show

Comments

Durham Goode - Aug. 9, 2016, 1:17 a.m.
# HG changeset patch
# User Durham Goode <durham@fb.com>
# Date 1470698149 25200
#      Mon Aug 08 16:15:49 2016 -0700
# Node ID b2a96595919d8d0f4c6f983b689b3659a505539f
# Parent  6a4c09571793d56c8dad1a6760e3fc1293b9a0b6
manifest: change changectx to access manifest via manifestlog

This is the first place where we'll start using manifestctx instances instead of
manifestdict. This will facilitate using different manifestctx implementations
in the future.

Patch

diff --git a/mercurial/context.py b/mercurial/context.py
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -528,7 +528,7 @@  class changectx(basectx):
 
     @propertycache
     def _manifest(self):
-        return self._repo.manifest.read(self._changeset.manifest)
+        return self._repo.manifestlog[self._changeset.manifest]
 
     @propertycache
     def _manifestdelta(self):