diff tests/simplestorerepo.py @ 39876:a269fa55467e

filelog: stop proxying deltaparent() (API) deltaparent() obtains the revision number of the base revision a delta in storage is stored against. It is highly revlog-centric and may not apply to other storage backends. As a result, it doesn't belong on the generic file storage interface. This method/proxy is no longer used in core. The last consumer was probably changegroup code and went away with the transition to emitrevisions(). Differential Revision: https://phab.mercurial-scm.org/D4751
author Gregory Szorc <gregory.szorc@gmail.com>
date Mon, 24 Sep 2018 13:35:50 -0700
parents d909c44d29e1
children f8eb71f9e3bd
line wrap: on
line diff
--- a/tests/simplestorerepo.py	Mon Sep 24 12:49:17 2018 -0700
+++ b/tests/simplestorerepo.py	Mon Sep 24 13:35:50 2018 -0700
@@ -233,12 +233,6 @@
 
         return self._indexbyrev[rev][b'flags']
 
-    def deltaparent(self, rev):
-        validaterev(rev)
-
-        p1node = self.parents(self.node(rev))[0]
-        return self.rev(p1node)
-
     def _candelta(self, baserev, rev):
         validaterev(baserev)
         validaterev(rev)