D6647: copies: remove unnecessary override of p[12]copies() in workingctx

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Mon Jul 15 18:36:41 EDT 2019


martinvonz created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  The implementation is identical to the version inherited from basectx.

REPOSITORY
  rHG Mercurial

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

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
@@ -1592,10 +1592,6 @@
             elif src in p2manifest:
                 p2copies[dst] = src
         return p1copies, p2copies
-    def p1copies(self):
-        return self._copies[0]
-    def p2copies(self):
-        return self._copies[1]
 
     @propertycache
     def _manifest(self):



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


More information about the Mercurial-devel mailing list