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

login
register
mail settings
Submitter Durham Goode
Date Aug. 17, 2016, 9:07 p.m.
Message ID <a099ac5b7536f029c984.1471468025@dev8486.prn1.facebook.com>
Download mbox | patch
Permalink /patch/16341/
State Accepted
Headers show

Comments

Durham Goode - Aug. 17, 2016, 9:07 p.m.
# HG changeset patch
# User Durham Goode <durham@fb.com>
# Date 1471465513 25200
#      Wed Aug 17 13:25:13 2016 -0700
# Node ID a099ac5b7536f029c984980cf8aafb74da02a8e7
# Parent  d8456d11c582e4b073ed9a7bf8098ee4393df5ca
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):