revlog.py: always return tuples from parents and parentrevs
There's at least one place doing parentrevs(rev) != (rev-1, -1),
which is always true with revlog v0, since parentrevs returns a list
in this case.
--- a/mercurial/revlog.py Tue Oct 24 17:22:07 2006 -0500
+++ b/mercurial/revlog.py Tue Oct 24 23:00:43 2006 -0300
@@ -481,13 +481,13 @@
d = self.index[r][-3:-1]
if self.version == REVLOGV0:
return d
- return [ self.node(x) for x in d ]
+ return (self.node(d[0]), self.node(d[1]))
def parentrevs(self, rev):
if rev == -1:
return (-1, -1)
d = self.index[rev][-3:-1]
if self.version == REVLOGV0:
- return [ self.rev(x) for x in d ]
+ return (self.rev(d[0]), self.rev(d[1]))
return d
def start(self, rev):
if rev < 0: