Mercurial > hg
changeset 39160:0e46b92b37b1
dagutil: remove externalize() and externalizeall()
They are unused after the previous commit.
.. api:: externalize() and externalizeall() removed from dagutil
Use .node() on a storage primitive to perform revision to node
conversions.
Differential Revision: https://phab.mercurial-scm.org/D4305
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Thu, 16 Aug 2018 19:40:46 +0000 |
parents | 5b32b3c618b2 |
children | 858a12846f4f |
files | mercurial/dagutil.py |
diffstat | 1 files changed, 0 insertions(+), 17 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/dagutil.py Thu Aug 16 19:39:47 2018 +0000 +++ b/mercurial/dagutil.py Thu Aug 16 19:40:46 2018 +0000 @@ -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: