소스 검색

Better storage metadata search now that the module name is recorded there anyway

tags/v1.0
JustAnotherArchivist 1 년 전
부모
커밋
eab6db9f27
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. +1
    -3
      codearchiver/modules/git.py

+ 1
- 3
codearchiver/modules/git.py 파일 보기

@@ -75,9 +75,7 @@ class Git(codearchiver.core.Module):
oldCommits = {} # dict to keep the order reasonable
basedOnBundles = {} # ditto
if self._storage:
for oldBundle in self._storage.search_metadata([('Root commit', c) for c in rootCommits]):
if not oldBundle.startswith('git_'): #TODO Is there a more generic and elegant approach?
continue
for oldBundle in self._storage.search_metadata([('Module', type(self).name)] + [('Root commit', c) for c in rootCommits]):
_logger.info(f'Previous bundle: {oldBundle!r}')
with self._storage.open_metadata(oldBundle) as fp:
idx = GitMetadata.deserialise(fp)


불러오는 중...
취소
저장