Comments
Patch
@@ -242,14 +242,17 @@
repo.destroying()
with repo.transaction("narrowing"):
+ # Update narrowspec before removing revlogs, so repo won't be
+ # corrupt in case of crash
+ repo.setnarrowpats(newincludes, newexcludes)
+
for f in todelete:
ui.status(_('deleting %s\n') % f)
util.unlinkpath(repo.svfs.join(f))
repo.store.markremoved(f)
_narrowcleanupwdir(repo, oldincludes, oldexcludes, newincludes,
newexcludes, oldmatch, newmatch)
- repo.setnarrowpats(newincludes, newexcludes)
repo.destroyed()