Patchwork D3037: repo: remove now-unused changectx() method (API)

login
register
mail settings
Submitter phabricator
Date April 4, 2018, 11:21 a.m.
Message ID <5b82ca45964550df095f84e427b48597@localhost.localdomain>
Download mbox | patch
Permalink /patch/30247/
State Not Applicable
Headers show

Comments

phabricator - April 4, 2018, 11:21 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG836867586b83: repo: remove now-unused changectx() method (API) (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3037?vs=7542&id=7613

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

AFFECTED FILES
  mercurial/localrepo.py
  mercurial/repository.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/repository.py b/mercurial/repository.py
--- a/mercurial/repository.py
+++ b/mercurial/repository.py
@@ -493,12 +493,6 @@ 
     def file(f):
         """Obtain a filelog for a tracked path."""
 
-    def changectx(changeid):
-        """Obtains a changectx for a revision.
-
-        Identical to __getitem__.
-        """
-
     def setparents(p1, p2):
         """Set the parent nodes of the working directory."""
 
diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -1073,9 +1073,6 @@ 
             f = f[1:]
         return filelog.filelog(self.svfs, f)
 
-    def changectx(self, changeid):
-        return self[changeid]
-
     def setparents(self, p1, p2=nullid):
         with self.dirstate.parentchange():
             copies = self.dirstate.setparents(p1, p2)