[PATCH 3 of 6 RFC] manifest: make repo.manifest access via the manifestaccessor

Durham Goode durham at fb.com
Thu Nov 3 22:27:39 UTC 2016


# HG changeset patch
# User Durham Goode <durham at fb.com>
# Date 1478209380 25200
#      Thu Nov 03 14:43:00 2016 -0700
# Branch stable
# Node ID 04c8f9fb517ef1755988fbae3db72df722bcd622
# Parent  89ee090611f9eecbab008678174b16b692b5c3c9
manifest: make repo.manifest access via the manifestaccessor

Now that we have a layer of indirection, we don't need the manifest property to
go through the manifestlog property anymore.

diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -506,7 +506,7 @@ class localrepository(object):
 
     @property
     def manifest(self):
-        return self.manifestlog._oldmanifest
+        return self.manifestaccessor.revlog
 
     @unfilteredpropertycache
     def manifestaccessor(self):



More information about the Mercurial-devel mailing list