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

login
register
mail settings
Submitter Durham Goode
Date Nov. 3, 2016, 10:27 p.m.
Message ID <04c8f9fb517ef1755988.1478212059@dev111.prn1.facebook.com>
Download mbox | patch
Permalink /patch/17332/
State Changes Requested
Headers show

Comments

Durham Goode - Nov. 3, 2016, 10:27 p.m.
# HG changeset patch
# User Durham Goode <durham@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.

Patch

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):