From patchwork Thu Jan 9 14:25:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D7801: overlwayworkingctx: remove doubly bad reference to wrapped ctx for copies From: phabricator X-Patchwork-Id: 44228 Message-Id: <298cadfd988d6b64f283069e30eb3afc@localhost.localdomain> To: Phabricator Cc: mercurial-devel@mercurial-scm.org Date: Thu, 9 Jan 2020 14:25:42 +0000 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 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):