Show More
@@ -2405,6 +2405,17 b' class revlog(object):' | |||
|
2405 | 2405 | |
|
2406 | 2406 | destrevlog._deltabothparents = forcedeltabothparents or oldamd |
|
2407 | 2407 | |
|
2408 | self._clone(tr, destrevlog, addrevisioncb, deltareuse, | |
|
2409 | forcedeltabothparents) | |
|
2410 | ||
|
2411 | finally: | |
|
2412 | destrevlog._lazydelta = oldlazydelta | |
|
2413 | destrevlog._lazydeltabase = oldlazydeltabase | |
|
2414 | destrevlog._deltabothparents = oldamd | |
|
2415 | ||
|
2416 | def _clone(self, tr, destrevlog, addrevisioncb, deltareuse, | |
|
2417 | forcedeltabothparents): | |
|
2418 | """perform the core duty of `revlog.clone` after parameter processing""" | |
|
2408 | 2419 |
|
|
2409 | 2420 |
|
|
2410 | 2421 |
|
@@ -2422,8 +2433,7 b' class revlog(object):' | |||
|
2422 | 2433 |
|
|
2423 | 2434 |
|
|
2424 | 2435 |
|
|
2425 |
|
|
|
2426 | and destrevlog._lazydelta): | |
|
2436 | if (deltareuse != self.DELTAREUSEFULLADD and destrevlog._lazydelta): | |
|
2427 | 2437 |
|
|
2428 | 2438 |
|
|
2429 | 2439 |
|
@@ -2454,10 +2464,6 b' class revlog(object):' | |||
|
2454 | 2464 | |
|
2455 | 2465 |
|
|
2456 | 2466 |
|
|
2457 | finally: | |
|
2458 | destrevlog._lazydelta = oldlazydelta | |
|
2459 | destrevlog._lazydeltabase = oldlazydeltabase | |
|
2460 | destrevlog._deltabothparents = oldamd | |
|
2461 | 2467 | |
|
2462 | 2468 | def censorrevision(self, tr, censornode, tombstone=b''): |
|
2463 | 2469 | if (self.version & 0xFFFF) == REVLOGV0: |
General Comments 0
You need to be logged in to leave comments.
Login now