Patchwork manifest: remove unused property _oldmanifest

login
register
mail settings
Submitter via Mercurial-devel
Date May 8, 2017, 6:22 p.m.
Message ID <f7920a409fb0516b7dc4.1494267778@martinvonz.svl.corp.google.com>
Download mbox | patch
Permalink /patch/20525/
State Accepted
Headers show

Comments

via Mercurial-devel - May 8, 2017, 6:22 p.m.
# HG changeset patch
# User Martin von Zweigbergk <martinvonz@google.com>
# Date 1494261561 25200
#      Mon May 08 09:39:21 2017 -0700
# Node ID f7920a409fb0516b7dc48404537b1fd24cf8e23e
# Parent  8f1a2b848b52ea7bf3fe2404e3b62924c7aae93f
manifest: remove unused property _oldmanifest

The last use seems to have gone away in 7c7d845f8b64 (manifest: make
manifestlog use it's own cache, 2016-11-10).
Augie Fackler - May 8, 2017, 7:05 p.m.
On Mon, May 08, 2017 at 11:22:58AM -0700, Martin von Zweigbergk via Mercurial-devel wrote:
> # HG changeset patch
> # User Martin von Zweigbergk <martinvonz@google.com>
> # Date 1494261561 25200
> #      Mon May 08 09:39:21 2017 -0700
> # Node ID f7920a409fb0516b7dc48404537b1fd24cf8e23e
> # Parent  8f1a2b848b52ea7bf3fe2404e3b62924c7aae93f
> manifest: remove unused property _oldmanifest

queued, thanks

Patch

diff --git a/mercurial/manifest.py b/mercurial/manifest.py
--- a/mercurial/manifest.py
+++ b/mercurial/manifest.py
@@ -1317,8 +1317,7 @@ 
             cachesize = opts.get('manifestcachesize', cachesize)
         self._treeinmem = usetreemanifest
 
-        self._oldmanifest = repo._constructmanifest()
-        self._revlog = self._oldmanifest
+        self._revlog = repo._constructmanifest()
 
         # A cache of the manifestctx or treemanifestctx for each directory
         self._dirmancache = {}