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

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Thu Jan 9 09:25:42 EST 2020


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

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



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


More information about the Mercurial-devel mailing list