##// END OF EJS Templates
store: use StoreEntry API instead of parsing filename in remotefilelog...
marmoute -
r51378:5805b8b2 default
parent child Browse files
Show More
@@ -173,19 +173,18 b' def onetimesetup(ui):'
173
173
174 if scmutil.istreemanifest(repo):
174 if scmutil.istreemanifest(repo):
175 for entry in repo.store.datafiles():
175 for entry in repo.store.datafiles():
176 u = entry.unencoded_path
176 if not entry.is_revlog:
177 if u.startswith(b'meta/') and (
177 continue
178 u.endswith(b'.i') or u.endswith(b'.d')
178 if entry.revlog_type == store.FILEFLAGS_MANIFESTLOG:
179 ):
180 yield entry
179 yield entry
181
180
182 # Return .d and .i files that do not match the shallow pattern
181 # Return .d and .i files that do not match the shallow pattern
183 match = state.match
182 match = state.match
184 if match and not match.always():
183 if match and not match.always():
185 for entry in repo.store.datafiles():
184 for entry in repo.store.datafiles():
186 u = entry.unencoded_path
185 if not entry.is_revlog:
187 f = u[5:-2] # trim data/... and .i/.d
186 continue
188 if not state.match(f):
187 if not state.match(entry.target_id):
189 yield entry
188 yield entry
190
189
191 for x in repo.store.topfiles():
190 for x in repo.store.topfiles():
General Comments 0
You need to be logged in to leave comments. Login now