Show More
@@ -242,6 +242,10 b' def _narrow(ui, repo, remote, commoninc,' | |||||
242 | repo.destroying() |
|
242 | repo.destroying() | |
243 |
|
243 | |||
244 | with repo.transaction("narrowing"): |
|
244 | with repo.transaction("narrowing"): | |
|
245 | # Update narrowspec before removing revlogs, so repo won't be | |||
|
246 | # corrupt in case of crash | |||
|
247 | repo.setnarrowpats(newincludes, newexcludes) | |||
|
248 | ||||
245 | for f in todelete: |
|
249 | for f in todelete: | |
246 | ui.status(_('deleting %s\n') % f) |
|
250 | ui.status(_('deleting %s\n') % f) | |
247 | util.unlinkpath(repo.svfs.join(f)) |
|
251 | util.unlinkpath(repo.svfs.join(f)) | |
@@ -249,7 +253,6 b' def _narrow(ui, repo, remote, commoninc,' | |||||
249 |
|
253 | |||
250 | _narrowcleanupwdir(repo, oldincludes, oldexcludes, newincludes, |
|
254 | _narrowcleanupwdir(repo, oldincludes, oldexcludes, newincludes, | |
251 | newexcludes, oldmatch, newmatch) |
|
255 | newexcludes, oldmatch, newmatch) | |
252 | repo.setnarrowpats(newincludes, newexcludes) |
|
|||
253 |
|
256 | |||
254 | repo.destroyed() |
|
257 | repo.destroyed() | |
255 |
|
258 |
General Comments 0
You need to be logged in to leave comments.
Login now