Mercurial > public > mercurial-scm > hg
diff mercurial/testing/storage.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 | 3e896b51aa5d |
line wrap: on
line diff
--- a/mercurial/testing/storage.py Mon Sep 24 12:49:17 2018 -0700 +++ b/mercurial/testing/storage.py Mon Sep 24 13:35:50 2018 -0700 @@ -122,15 +122,6 @@ with self.assertRaises(error.LookupError): f.children(b'\x01' * 20) - self.assertEqual(f.deltaparent(nullrev), nullrev) - - for i in range(-5, 5): - if i == nullrev: - continue - - with self.assertRaises(IndexError): - f.deltaparent(i) - def testsinglerevision(self): f = self._makefilefn() with self._maketransactionfn() as tr: @@ -200,8 +191,6 @@ self.assertEqual(f.children(node), []) - self.assertEqual(f.deltaparent(0), nullrev) - def testmultiplerevisions(self): fulltext0 = b'x' * 1024 fulltext1 = fulltext0 + b'y' @@ -313,10 +302,6 @@ self.assertEqual(f.children(node1), [node2]) self.assertEqual(f.children(node2), []) - self.assertEqual(f.deltaparent(0), nullrev) - self.assertEqual(f.deltaparent(1), 0) - self.assertEqual(f.deltaparent(2), 1) - def testmultipleheads(self): f = self._makefilefn()