equal
deleted
inserted
replaced
406 storefiles = set() |
406 storefiles = set() |
407 subdirs = set() |
407 subdirs = set() |
408 revlogv1 = self.revlogv1 |
408 revlogv1 = self.revlogv1 |
409 undecodable = [] |
409 undecodable = [] |
410 for entry in repo.store.datafiles(undecodable=undecodable): |
410 for entry in repo.store.datafiles(undecodable=undecodable): |
411 f = entry.unencoded_path |
411 for file_ in entry.files(): |
412 size = entry.file_size |
412 f = file_.unencoded_path |
413 if (size > 0 or not revlogv1) and f.startswith(b'meta/'): |
413 size = file_.file_size |
414 storefiles.add(_normpath(f)) |
414 if (size > 0 or not revlogv1) and f.startswith(b'meta/'): |
415 subdirs.add(os.path.dirname(f)) |
415 storefiles.add(_normpath(f)) |
|
416 subdirs.add(os.path.dirname(f)) |
416 for f in undecodable: |
417 for f in undecodable: |
417 self._err(None, _(b"cannot decode filename '%s'") % f) |
418 self._err(None, _(b"cannot decode filename '%s'") % f) |
418 subdirprogress = ui.makeprogress( |
419 subdirprogress = ui.makeprogress( |
419 _(b'checking'), unit=_(b'manifests'), total=len(subdirs) |
420 _(b'checking'), unit=_(b'manifests'), total=len(subdirs) |
420 ) |
421 ) |
473 ui.status(_(b"checking files\n")) |
474 ui.status(_(b"checking files\n")) |
474 |
475 |
475 storefiles = set() |
476 storefiles = set() |
476 undecodable = [] |
477 undecodable = [] |
477 for entry in repo.store.datafiles(undecodable=undecodable): |
478 for entry in repo.store.datafiles(undecodable=undecodable): |
478 size = entry.file_size |
479 for file_ in entry.files(): |
479 f = entry.unencoded_path |
480 size = file_.file_size |
480 if (size > 0 or not revlogv1) and f.startswith(b'data/'): |
481 f = file_.unencoded_path |
481 storefiles.add(_normpath(f)) |
482 if (size > 0 or not revlogv1) and f.startswith(b'data/'): |
|
483 storefiles.add(_normpath(f)) |
482 for f in undecodable: |
484 for f in undecodable: |
483 self._err(None, _(b"cannot decode filename '%s'") % f) |
485 self._err(None, _(b"cannot decode filename '%s'") % f) |
484 |
486 |
485 state = { |
487 state = { |
486 # TODO this assumes revlog storage for changelog. |
488 # TODO this assumes revlog storage for changelog. |