Show More
@@ -67,9 +67,6 b' class filelog(object):' | |||
|
67 | 67 | def children(self, node): |
|
68 | 68 | return self._revlog.children(node) |
|
69 | 69 | |
|
70 | def deltaparent(self, rev): | |
|
71 | return self._revlog.deltaparent(rev) | |
|
72 | ||
|
73 | 70 | def iscensored(self, rev): |
|
74 | 71 | return self._revlog.iscensored(rev) |
|
75 | 72 |
@@ -533,9 +533,6 b' class ifileindex(interfaceutil.Interface' | |||
|
533 | 533 | Returns a list of nodes. |
|
534 | 534 | """ |
|
535 | 535 | |
|
536 | def deltaparent(rev): | |
|
537 | """"Return the revision that is a suitable parent to delta against.""" | |
|
538 | ||
|
539 | 536 | class ifiledata(interfaceutil.Interface): |
|
540 | 537 | """Storage interface for data storage of a specific file. |
|
541 | 538 |
@@ -122,15 +122,6 b' class ifileindextests(basetestcase):' | |||
|
122 | 122 | with self.assertRaises(error.LookupError): |
|
123 | 123 | f.children(b'\x01' * 20) |
|
124 | 124 | |
|
125 | self.assertEqual(f.deltaparent(nullrev), nullrev) | |
|
126 | ||
|
127 | for i in range(-5, 5): | |
|
128 | if i == nullrev: | |
|
129 | continue | |
|
130 | ||
|
131 | with self.assertRaises(IndexError): | |
|
132 | f.deltaparent(i) | |
|
133 | ||
|
134 | 125 | def testsinglerevision(self): |
|
135 | 126 | f = self._makefilefn() |
|
136 | 127 | with self._maketransactionfn() as tr: |
@@ -200,8 +191,6 b' class ifileindextests(basetestcase):' | |||
|
200 | 191 | |
|
201 | 192 | self.assertEqual(f.children(node), []) |
|
202 | 193 | |
|
203 | self.assertEqual(f.deltaparent(0), nullrev) | |
|
204 | ||
|
205 | 194 | def testmultiplerevisions(self): |
|
206 | 195 | fulltext0 = b'x' * 1024 |
|
207 | 196 | fulltext1 = fulltext0 + b'y' |
@@ -313,10 +302,6 b' class ifileindextests(basetestcase):' | |||
|
313 | 302 | self.assertEqual(f.children(node1), [node2]) |
|
314 | 303 | self.assertEqual(f.children(node2), []) |
|
315 | 304 | |
|
316 | self.assertEqual(f.deltaparent(0), nullrev) | |
|
317 | self.assertEqual(f.deltaparent(1), 0) | |
|
318 | self.assertEqual(f.deltaparent(2), 1) | |
|
319 | ||
|
320 | 305 | def testmultipleheads(self): |
|
321 | 306 | f = self._makefilefn() |
|
322 | 307 |
@@ -233,12 +233,6 b' class filestorage(object):' | |||
|
233 | 233 | |
|
234 | 234 | return self._indexbyrev[rev][b'flags'] |
|
235 | 235 | |
|
236 | def deltaparent(self, rev): | |
|
237 | validaterev(rev) | |
|
238 | ||
|
239 | p1node = self.parents(self.node(rev))[0] | |
|
240 | return self.rev(p1node) | |
|
241 | ||
|
242 | 236 | def _candelta(self, baserev, rev): |
|
243 | 237 | validaterev(baserev) |
|
244 | 238 | validaterev(rev) |
General Comments 0
You need to be logged in to leave comments.
Login now