##// END OF EJS Templates
engine: refactor how total dstsize is calculated...
Pulkit Goyal -
r46831:5dfa837d default
parent child Browse files
Show More
@@ -285,9 +285,7 b' def _clonerevlogs('
285 oncopiedrevision,
285 oncopiedrevision,
286 )
286 )
287 info = newrl.storageinfo(storedsize=True)
287 info = newrl.storageinfo(storedsize=True)
288 datasize = info[b'storedsize'] or 0
288 fdstsize += info[b'storedsize'] or 0
289 dstsize += datasize
290 fdstsize += datasize
291 ui.status(
289 ui.status(
292 _(
290 _(
293 b'finished migrating %d filelog revisions across %d '
291 b'finished migrating %d filelog revisions across %d '
@@ -328,9 +326,7 b' def _clonerevlogs('
328 oncopiedrevision,
326 oncopiedrevision,
329 )
327 )
330 info = newrl.storageinfo(storedsize=True)
328 info = newrl.storageinfo(storedsize=True)
331 datasize = info[b'storedsize'] or 0
329 mdstsize += info[b'storedsize'] or 0
332 dstsize += datasize
333 mdstsize += datasize
334 ui.status(
330 ui.status(
335 _(
331 _(
336 b'finished migrating %d manifest revisions across %d '
332 b'finished migrating %d manifest revisions across %d '
@@ -370,9 +366,7 b' def _clonerevlogs('
370 oncopiedrevision,
366 oncopiedrevision,
371 )
367 )
372 info = newrl.storageinfo(storedsize=True)
368 info = newrl.storageinfo(storedsize=True)
373 datasize = info[b'storedsize'] or 0
369 cdstsize += info[b'storedsize'] or 0
374 dstsize += datasize
375 cdstsize += datasize
376 progress.complete()
370 progress.complete()
377 ui.status(
371 ui.status(
378 _(
372 _(
@@ -382,6 +376,7 b' def _clonerevlogs('
382 % (crevcount, util.bytecount(cdstsize - csrcsize))
376 % (crevcount, util.bytecount(cdstsize - csrcsize))
383 )
377 )
384
378
379 dstsize = fdstsize + mdstsize + cdstsize
385 ui.status(
380 ui.status(
386 _(
381 _(
387 b'finished migrating %d total revisions; total change in store '
382 b'finished migrating %d total revisions; total change in store '
General Comments 0
You need to be logged in to leave comments. Login now