Show More
@@ -2442,10 +2442,20 b' class revlog(object):' | |||||
2442 | empty = True |
|
2442 | empty = True | |
2443 |
|
2443 | |||
2444 | try: |
|
2444 | try: | |
|
2445 | if True: | |||
2445 | deltacomputer = deltautil.deltacomputer(self) |
|
2446 | deltacomputer = deltautil.deltacomputer(self) | |
2446 | # loop through our set of deltas |
|
2447 | # loop through our set of deltas | |
2447 | for data in deltas: |
|
2448 | for data in deltas: | |
2448 | node, p1, p2, linknode, deltabase, delta, flags, sidedata = data |
|
2449 | ( | |
|
2450 | node, | |||
|
2451 | p1, | |||
|
2452 | p2, | |||
|
2453 | linknode, | |||
|
2454 | deltabase, | |||
|
2455 | delta, | |||
|
2456 | flags, | |||
|
2457 | sidedata, | |||
|
2458 | ) = data | |||
2449 | link = linkmapper(linknode) |
|
2459 | link = linkmapper(linknode) | |
2450 | flags = flags or REVIDX_DEFAULT_FLAGS |
|
2460 | flags = flags or REVIDX_DEFAULT_FLAGS | |
2451 |
|
2461 | |||
@@ -2477,7 +2487,9 b' class revlog(object):' | |||||
2477 | hlen = struct.calcsize(b">lll") |
|
2487 | hlen = struct.calcsize(b">lll") | |
2478 | oldlen = self.rawsize(baserev) |
|
2488 | oldlen = self.rawsize(baserev) | |
2479 | newlen = len(delta) - hlen |
|
2489 | newlen = len(delta) - hlen | |
2480 |
if delta[:hlen] != mdiff.replacediffheader( |
|
2490 | if delta[:hlen] != mdiff.replacediffheader( | |
|
2491 | oldlen, newlen | |||
|
2492 | ): | |||
2481 | raise error.CensoredBaseError( |
|
2493 | raise error.CensoredBaseError( | |
2482 | self.display_id, self.node(baserev) |
|
2494 | self.display_id, self.node(baserev) | |
2483 | ) |
|
2495 | ) |
General Comments 0
You need to be logged in to leave comments.
Login now