##// END OF EJS Templates
upgrade: no longer keep all revlogs in memory at any point...
marmoute -
r50447:19948429 stable
parent child Browse files
Show More
@@ -233,18 +233,18 b' def _clonerevlogs('
233
233
234 # This is for the separate progress bars.
234 # This is for the separate progress bars.
235 if rl_type & store.FILEFLAGS_CHANGELOG:
235 if rl_type & store.FILEFLAGS_CHANGELOG:
236 changelogs[unencoded] = (rl_type, rl)
236 changelogs[unencoded] = rl_type
237 crevcount += len(rl)
237 crevcount += len(rl)
238 csrcsize += datasize
238 csrcsize += datasize
239 crawsize += rawsize
239 crawsize += rawsize
240 elif rl_type & store.FILEFLAGS_MANIFESTLOG:
240 elif rl_type & store.FILEFLAGS_MANIFESTLOG:
241 manifests[unencoded] = (rl_type, rl)
241 manifests[unencoded] = rl_type
242 mcount += 1
242 mcount += 1
243 mrevcount += len(rl)
243 mrevcount += len(rl)
244 msrcsize += datasize
244 msrcsize += datasize
245 mrawsize += rawsize
245 mrawsize += rawsize
246 elif rl_type & store.FILEFLAGS_FILELOG:
246 elif rl_type & store.FILEFLAGS_FILELOG:
247 filelogs[unencoded] = (rl_type, rl)
247 filelogs[unencoded] = rl_type
248 fcount += 1
248 fcount += 1
249 frevcount += len(rl)
249 frevcount += len(rl)
250 fsrcsize += datasize
250 fsrcsize += datasize
@@ -289,7 +289,9 b' def _clonerevlogs('
289 )
289 )
290 )
290 )
291 progress = srcrepo.ui.makeprogress(_(b'file revisions'), total=frevcount)
291 progress = srcrepo.ui.makeprogress(_(b'file revisions'), total=frevcount)
292 for unencoded, (rl_type, oldrl) in sorted(filelogs.items()):
292 for unencoded, rl_type in sorted(filelogs.items()):
293 oldrl = _revlogfrompath(srcrepo, rl_type, unencoded)
294
293 newrl = _perform_clone(
295 newrl = _perform_clone(
294 ui,
296 ui,
295 dstrepo,
297 dstrepo,
@@ -329,7 +331,8 b' def _clonerevlogs('
329 progress = srcrepo.ui.makeprogress(
331 progress = srcrepo.ui.makeprogress(
330 _(b'manifest revisions'), total=mrevcount
332 _(b'manifest revisions'), total=mrevcount
331 )
333 )
332 for unencoded, (rl_type, oldrl) in sorted(manifests.items()):
334 for unencoded, rl_type in sorted(manifests.items()):
335 oldrl = _revlogfrompath(srcrepo, rl_type, unencoded)
333 newrl = _perform_clone(
336 newrl = _perform_clone(
334 ui,
337 ui,
335 dstrepo,
338 dstrepo,
@@ -368,7 +371,8 b' def _clonerevlogs('
368 progress = srcrepo.ui.makeprogress(
371 progress = srcrepo.ui.makeprogress(
369 _(b'changelog revisions'), total=crevcount
372 _(b'changelog revisions'), total=crevcount
370 )
373 )
371 for unencoded, (rl_type, oldrl) in sorted(changelogs.items()):
374 for unencoded, rl_type in sorted(changelogs.items()):
375 oldrl = _revlogfrompath(srcrepo, rl_type, unencoded)
372 newrl = _perform_clone(
376 newrl = _perform_clone(
373 ui,
377 ui,
374 dstrepo,
378 dstrepo,
General Comments 0
You need to be logged in to leave comments. Login now