equal
deleted
inserted
replaced
424 lambda tr: repo._afterlock(runhooks)) |
424 lambda tr: repo._afterlock(runhooks)) |
425 finally: |
425 finally: |
426 repo.ui.flush() |
426 repo.ui.flush() |
427 # never return 0 here: |
427 # never return 0 here: |
428 if deltaheads < 0: |
428 if deltaheads < 0: |
429 return deltaheads - 1 |
429 ret = deltaheads - 1 |
430 else: |
430 else: |
431 return deltaheads + 1 |
431 ret = deltaheads + 1 |
|
432 return ret, added |
432 |
433 |
433 class cg2unpacker(cg1unpacker): |
434 class cg2unpacker(cg1unpacker): |
434 """Unpacker for cg2 streams. |
435 """Unpacker for cg2 streams. |
435 |
436 |
436 cg2 streams add support for generaldelta, so the delta header |
437 cg2 streams add support for generaldelta, so the delta header |