Show More
@@ -31,6 +31,7 b' from mercurial import (' | |||
|
31 | 31 | repoview, |
|
32 | 32 | requirements, |
|
33 | 33 | sparse, |
|
34 | store, | |
|
34 | 35 | util, |
|
35 | 36 | wireprototypes, |
|
36 | 37 | ) |
@@ -289,14 +290,14 b' def _narrow(' | |||
|
289 | 290 | |
|
290 | 291 | todelete = [] |
|
291 | 292 | for entry in repo.store.datafiles(): |
|
292 |
f |
|
|
293 | if f.startswith(b'data/'): | |
|
294 | file = f[5:-2] | |
|
295 |
if not newmatch( |
|
|
293 | if not entry.is_revlog: | |
|
294 | continue | |
|
295 | if entry.revlog_type == store.FILEFLAGS_FILELOG: | |
|
296 | if not newmatch(entry.target_id): | |
|
296 | 297 | for file_ in entry.files(): |
|
297 | 298 | todelete.append(file_.unencoded_path) |
|
298 | elif f.startswith(b'meta/'): | |
|
299 |
dir = |
|
|
299 | elif entry.revlog_type == store.FILEFLAGS_MANIFESTLOG: | |
|
300 | dir = entry.target_id | |
|
300 | 301 | dirs = sorted(pathutil.dirs({dir})) + [dir] |
|
301 | 302 | include = True |
|
302 | 303 | for d in dirs: |
General Comments 0
You need to be logged in to leave comments.
Login now