equal
deleted
inserted
replaced
291 for entry in repo.store.datafiles(): |
291 for entry in repo.store.datafiles(): |
292 f = entry.unencoded_path |
292 f = entry.unencoded_path |
293 if f.startswith(b'data/'): |
293 if f.startswith(b'data/'): |
294 file = f[5:-2] |
294 file = f[5:-2] |
295 if not newmatch(file): |
295 if not newmatch(file): |
296 todelete.append(f) |
296 for file_ in entry.files(): |
|
297 todelete.append(file_.unencoded_path) |
297 elif f.startswith(b'meta/'): |
298 elif f.startswith(b'meta/'): |
298 dir = f[5:-13] |
299 dir = f[5:-13] |
299 dirs = sorted(pathutil.dirs({dir})) + [dir] |
300 dirs = sorted(pathutil.dirs({dir})) + [dir] |
300 include = True |
301 include = True |
301 for d in dirs: |
302 for d in dirs: |
304 include = False |
305 include = False |
305 break |
306 break |
306 if visit == b'all': |
307 if visit == b'all': |
307 break |
308 break |
308 if not include: |
309 if not include: |
309 todelete.append(f) |
310 for file_ in entry.files(): |
|
311 todelete.append(file_.unencoded_path) |
310 |
312 |
311 repo.destroying() |
313 repo.destroying() |
312 |
314 |
313 with repo.transaction(b'narrowing'): |
315 with repo.transaction(b'narrowing'): |
314 # Update narrowspec before removing revlogs, so repo won't be |
316 # Update narrowspec before removing revlogs, so repo won't be |