( )⚙ D5467 narrow: when narrowing, write new narrowspec before removing revlogs

This is an archive of the discontinued Mercurial Phabricator instance.

narrow: when narrowing, write new narrowspec before removing revlogs
ClosedPublic

Authored by martinvonz on Dec 20 2018, 1:11 PM.

Details

Summary

If revlogs were removed and then the process crashed before the
narrowspec was written, the repo would be corrupt.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.