I want to be able to import new repositories without using the Phabricator webinterface. Either by making a command-line option or a conduit call (not sure which is more reasonable). I'm willing to program this task myself.
Obviously want as much advice/guidance as possible. But it looks to me like the general idea is to
(1) Create something like PhabricatorRepositoryManagementImportWorkflow.php in https://secure.phabricator.com/diffusion/P/browse/master/src/applications/repository/management/
(2) Have the workflow call PhabricatorRepository::initializeNewRepository
In a way similar to is done in https://secure.phabricator.com/diffusion/P/browse/master/src/applications/diffusion/controller/DiffusionRepositoryCreateController.php