HomePhabricator

narrow: when narrowing, write new narrowspec before removing revlogs

Authored by martinvonz.

Description

narrow: when narrowing, write new narrowspec before removing revlogs

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

Differential Revision: https://phab.mercurial-scm.org/D5467