equal
deleted
inserted
replaced
86 dateutil, |
86 dateutil, |
87 procutil, |
87 procutil, |
88 stringutil, |
88 stringutil, |
89 ) |
89 ) |
90 |
90 |
|
91 from .revlogutils import ( |
|
92 deltas as deltautil |
|
93 ) |
|
94 |
91 release = lockmod.release |
95 release = lockmod.release |
92 |
96 |
93 command = registrar.command() |
97 command = registrar.command() |
94 |
98 |
95 @command('debugancestor', [], _('[INDEX] REV1 REV2'), optionalrepo=True) |
99 @command('debugancestor', [], _('[INDEX] REV1 REV2'), optionalrepo=True) |
704 if withsparseread: |
708 if withsparseread: |
705 readsize = 0 |
709 readsize = 0 |
706 largestblock = 0 |
710 largestblock = 0 |
707 srchunks = 0 |
711 srchunks = 0 |
708 |
712 |
709 for revschunk in revlog._slicechunk(r, chain): |
713 for revschunk in deltautil.slicechunk(r, chain): |
710 srchunks += 1 |
714 srchunks += 1 |
711 blkend = start(revschunk[-1]) + length(revschunk[-1]) |
715 blkend = start(revschunk[-1]) + length(revschunk[-1]) |
712 blksize = blkend - start(revschunk[0]) |
716 blksize = blkend - start(revschunk[0]) |
713 |
717 |
714 readsize += blksize |
718 readsize += blksize |