HomePhabricator

mergestate: move most of of reset() into start()

Authored by martinvonz.

Description

mergestate: move most of of reset() into start()

ms.reset() has somehow become a combination of two different things:

  1. A constructor-like function creating an empty instance
  2. A call to shutil.rmtree() to clear the mergestate.

It seems that all callers now care only about the latter (since we
changed one caller to use the new ms.start() method instead). Let's
move the code for the former into start(), since that's the only
place it's needed.

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

Details