D4305: dagutil: remove externalize() and externalizeall()

indygreg (Gregory Szorc) phabricator at mercurial-scm.org
Sat Aug 18 04:06:29 EDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG0e46b92b37b1: dagutil: remove externalize() and externalizeall() (authored by indygreg, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D4305?vs=10399&id=10429

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

AFFECTED FILES
  mercurial/dagutil.py

CHANGE DETAILS

diff --git a/mercurial/dagutil.py b/mercurial/dagutil.py
--- a/mercurial/dagutil.py
+++ b/mercurial/dagutil.py
@@ -62,17 +62,6 @@
         '''
         raise NotImplementedError
 
-    def externalize(self, ix):
-        '''return a node id'''
-        return self._externalize(ix)
-
-    def externalizeall(self, ixs):
-        '''return a list of (or set if given a set) of node ids'''
-        ids = self._externalizeall(ixs)
-        if isinstance(ixs, set):
-            return set(ids)
-        return list(ids)
-
     def internalize(self, id):
         '''return a node ix'''
         return self._internalize(id)
@@ -130,12 +119,6 @@
             self._heads = self._getheads()
         return self._heads
 
-    def _externalize(self, ix):
-        return self._revlog.index[ix][7]
-    def _externalizeall(self, ixs):
-        idx = self._revlog.index
-        return [idx[i][7] for i in ixs]
-
     def _internalize(self, id):
         ix = self._revlog.rev(id)
         if ix == nullrev:



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


More information about the Mercurial-devel mailing list