HomePhabricator

fix: refactor getrevstofix() to define revisions first, then validate them

Authored by martinvonz.

Description

fix: refactor getrevstofix() to define revisions first, then validate them

This refactoring makes it easier to add a new way of specifying
revisions (I'm about to add a --source, which adds the specified
revisions and their descendants).

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

Details