Show More
@@ -144,10 +144,12 b' def update_persistent_nodemap(revlog):' | |||
|
144 | 144 | |
|
145 | 145 | def delete_nodemap(tr, repo, revlog): |
|
146 | 146 | """Delete nodemap data on disk for a given revlog""" |
|
147 | if revlog._nodemap_file is None: | |
|
148 | msg = "calling persist nodemap on a revlog without the feature enabled" | |
|
149 | raise error.ProgrammingError(msg) | |
|
150 | repo.svfs.tryunlink(revlog._nodemap_file) | |
|
147 | prefix = revlog.radix | |
|
148 | pattern = re.compile(br"(^|/)%s(-[0-9a-f]+\.nd|\.n(\.a)?)$" % prefix) | |
|
149 | dirpath = revlog.opener.dirname(revlog._indexfile) | |
|
150 | for f in revlog.opener.listdir(dirpath): | |
|
151 | if pattern.match(f): | |
|
152 | repo.svfs.tryunlink(f) | |
|
151 | 153 | |
|
152 | 154 | |
|
153 | 155 | def persist_nodemap(tr, revlog, pending=False, force=False): |
General Comments 0
You need to be logged in to leave comments.
Login now