Show More
@@ -67,9 +67,6 b' class filelog(object):' | |||||
67 | def children(self, node): |
|
67 | def children(self, node): | |
68 | return self._revlog.children(node) |
|
68 | return self._revlog.children(node) | |
69 |
|
69 | |||
70 | def deltaparent(self, rev): |
|
|||
71 | return self._revlog.deltaparent(rev) |
|
|||
72 |
|
||||
73 | def iscensored(self, rev): |
|
70 | def iscensored(self, rev): | |
74 | return self._revlog.iscensored(rev) |
|
71 | return self._revlog.iscensored(rev) | |
75 |
|
72 |
@@ -533,9 +533,6 b' class ifileindex(interfaceutil.Interface' | |||||
533 | Returns a list of nodes. |
|
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 | class ifiledata(interfaceutil.Interface): |
|
536 | class ifiledata(interfaceutil.Interface): | |
540 | """Storage interface for data storage of a specific file. |
|
537 | """Storage interface for data storage of a specific file. | |
541 |
|
538 |
@@ -122,15 +122,6 b' class ifileindextests(basetestcase):' | |||||
122 | with self.assertRaises(error.LookupError): |
|
122 | with self.assertRaises(error.LookupError): | |
123 | f.children(b'\x01' * 20) |
|
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 | def testsinglerevision(self): |
|
125 | def testsinglerevision(self): | |
135 | f = self._makefilefn() |
|
126 | f = self._makefilefn() | |
136 | with self._maketransactionfn() as tr: |
|
127 | with self._maketransactionfn() as tr: | |
@@ -200,8 +191,6 b' class ifileindextests(basetestcase):' | |||||
200 |
|
191 | |||
201 | self.assertEqual(f.children(node), []) |
|
192 | self.assertEqual(f.children(node), []) | |
202 |
|
193 | |||
203 | self.assertEqual(f.deltaparent(0), nullrev) |
|
|||
204 |
|
||||
205 | def testmultiplerevisions(self): |
|
194 | def testmultiplerevisions(self): | |
206 | fulltext0 = b'x' * 1024 |
|
195 | fulltext0 = b'x' * 1024 | |
207 | fulltext1 = fulltext0 + b'y' |
|
196 | fulltext1 = fulltext0 + b'y' | |
@@ -313,10 +302,6 b' class ifileindextests(basetestcase):' | |||||
313 | self.assertEqual(f.children(node1), [node2]) |
|
302 | self.assertEqual(f.children(node1), [node2]) | |
314 | self.assertEqual(f.children(node2), []) |
|
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 | def testmultipleheads(self): |
|
305 | def testmultipleheads(self): | |
321 | f = self._makefilefn() |
|
306 | f = self._makefilefn() | |
322 |
|
307 |
@@ -233,12 +233,6 b' class filestorage(object):' | |||||
233 |
|
233 | |||
234 | return self._indexbyrev[rev][b'flags'] |
|
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 | def _candelta(self, baserev, rev): |
|
236 | def _candelta(self, baserev, rev): | |
243 | validaterev(baserev) |
|
237 | validaterev(baserev) | |
244 | validaterev(rev) |
|
238 | validaterev(rev) |
General Comments 0
You need to be logged in to leave comments.
Login now