Show More
@@ -475,8 +475,8 b' class revlog:' | |||||
475 | t = r - 1 |
|
475 | t = r - 1 | |
476 | node = nullid |
|
476 | node = nullid | |
477 |
|
477 | |||
478 |
base = |
|
478 | base = -1 | |
479 | start = end = 0 |
|
479 | start = end = measure = 0 | |
480 | if r: |
|
480 | if r: | |
481 | start = self.start(self.base(t)) |
|
481 | start = self.start(self.base(t)) | |
482 | end = self.end(t) |
|
482 | end = self.end(t) | |
@@ -491,6 +491,7 b' class revlog:' | |||||
491 |
|
491 | |||
492 | # loop through our set of deltas |
|
492 | # loop through our set of deltas | |
493 | chain = None |
|
493 | chain = None | |
|
494 | prev = self.tip() | |||
494 | for chunk in revs: |
|
495 | for chunk in revs: | |
495 | node, p1, p2, cs = struct.unpack("20s20s20s20s", chunk[:80]) |
|
496 | node, p1, p2, cs = struct.unpack("20s20s20s20s", chunk[:80]) | |
496 | link = linkmapper(cs) |
|
497 | link = linkmapper(cs) | |
@@ -498,6 +499,7 b' class revlog:' | |||||
498 | # this can happen if two branches make the same change |
|
499 | # this can happen if two branches make the same change | |
499 | if unique: |
|
500 | if unique: | |
500 | raise "already have %s" % hex(node[:4]) |
|
501 | raise "already have %s" % hex(node[:4]) | |
|
502 | chain = node | |||
501 | continue |
|
503 | continue | |
502 | delta = chunk[80:] |
|
504 | delta = chunk[80:] | |
503 |
|
505 |
General Comments 0
You need to be logged in to leave comments.
Login now