Show More
@@ -82,7 +82,7 b' class lazymap:' | |||||
82 | self.p.load(pos) |
|
82 | self.p.load(pos) | |
83 | def __contains__(self, key): |
|
83 | def __contains__(self, key): | |
84 | try: |
|
84 | try: | |
85 |
self |
|
85 | self[key] | |
86 | return True |
|
86 | return True | |
87 | except KeyError: |
|
87 | except KeyError: | |
88 | return False |
|
88 | return False | |
@@ -434,6 +434,8 b' class revlog:' | |||||
434 | while pos < len(data): |
|
434 | while pos < len(data): | |
435 | l, node, p1, p2, cs = struct.unpack(">l20s20s20s20s", |
|
435 | l, node, p1, p2, cs = struct.unpack(">l20s20s20s20s", | |
436 | data[pos:pos+84]) |
|
436 | data[pos:pos+84]) | |
|
437 | if node in self.nodemap: | |||
|
438 | raise "already have %s" % hex(node[:4]) | |||
437 | link = linkmapper(cs) |
|
439 | link = linkmapper(cs) | |
438 | delta = data[pos + 84:pos + l] |
|
440 | delta = data[pos + 84:pos + l] | |
439 | pos += l |
|
441 | pos += l |
General Comments 0
You need to be logged in to leave comments.
Login now