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