Show More
@@ -467,7 +467,7 b' class revlog(object):' | |||||
467 | def tip(self): return self.node(len(self.index) - 1) |
|
467 | def tip(self): return self.node(len(self.index) - 1) | |
468 | def count(self): return len(self.index) |
|
468 | def count(self): return len(self.index) | |
469 | def node(self, rev): |
|
469 | def node(self, rev): | |
470 |
return |
|
470 | return rev == nullrev and nullid or self.index[rev][-1] | |
471 | def rev(self, node): |
|
471 | def rev(self, node): | |
472 | try: |
|
472 | try: | |
473 | return self.nodemap[node] |
|
473 | return self.nodemap[node] | |
@@ -490,7 +490,7 b' class revlog(object):' | |||||
490 | return (self.rev(d[0]), self.rev(d[1])) |
|
490 | return (self.rev(d[0]), self.rev(d[1])) | |
491 | return d |
|
491 | return d | |
492 | def start(self, rev): |
|
492 | def start(self, rev): | |
493 |
if rev |
|
493 | if rev == nullrev: | |
494 | return 0 |
|
494 | return 0 | |
495 | if self.version != REVLOGV0: |
|
495 | if self.version != REVLOGV0: | |
496 | return self.ngoffset(self.index[rev][0]) |
|
496 | return self.ngoffset(self.index[rev][0]) | |
@@ -532,11 +532,15 b' class revlog(object):' | |||||
532 | """ |
|
532 | """ | |
533 |
|
533 | |||
534 | def length(self, rev): |
|
534 | def length(self, rev): | |
535 |
if rev |
|
535 | if rev == nullrev: | |
536 | return 0 |
|
536 | return 0 | |
537 | else: |
|
537 | else: | |
538 | return self.index[rev][1] |
|
538 | return self.index[rev][1] | |
539 | def base(self, rev): return (rev < 0) and rev or self.index[rev][-5] |
|
539 | def base(self, rev): | |
|
540 | if (rev == nullrev): | |||
|
541 | return nullrev | |||
|
542 | else: | |||
|
543 | return self.index[rev][-5] | |||
540 |
|
544 | |||
541 | def reachable(self, rev, stop=None): |
|
545 | def reachable(self, rev, stop=None): | |
542 | reachable = {} |
|
546 | reachable = {} |
General Comments 0
You need to be logged in to leave comments.
Login now