Patchwork D7801: overlwayworkingctx: remove doubly bad reference to wrapped ctx for copies

login
register
mail settings
Submitter phabricator
Date Jan. 9, 2020, 2:25 p.m.
Message ID <298cadfd988d6b64f283069e30eb3afc@localhost.localdomain>
Download mbox | patch
Permalink /patch/44228/
State Not Applicable
Headers show

Comments

phabricator - Jan. 9, 2020, 2:25 p.m.
Closed by commit rHGf652b7ddc1d4: overlwayworkingctx: remove doubly bad reference to wrapped ctx for copies (authored by martinvonz).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7801?vs=19053&id=19123

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7801/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D7801

AFFECTED FILES
  mercurial/context.py

CHANGE DETAILS




To: martinvonz, #hg-reviewers, pulkit
Cc: mercurial-devel

Patch

diff --git a/mercurial/context.py b/mercurial/context.py
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -2224,7 +2224,7 @@ 
         ]
 
     def p1copies(self):
-        copies = self._repo._wrappedctx.p1copies().copy()
+        copies = {}
         narrowmatch = self._repo.narrowmatch()
         for f in self._cache.keys():
             if not narrowmatch(f):
@@ -2236,7 +2236,7 @@ 
         return copies
 
     def p2copies(self):
-        copies = self._repo._wrappedctx.p2copies().copy()
+        copies = {}
         narrowmatch = self._repo.narrowmatch()
         for f in self._cache.keys():
             if not narrowmatch(f):