Separate repository mirroring into an Engine and provide bin/repository mirror

Summary:
Ref T4338. Currently, there's no diagnostic command to execute mirroring (so I can't give users an easy command to run), and it's roughly the last piece of real logic left in the PullLocal daemon.

Separate mirroring out, and provide `bin/repository mirror`.

Test Plan:
  - Ran `bin/repository mirror` to mirror a repository.
  - Ran PullLocalDaemon and verified it also continued mirroring normally.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T4338

Differential Revision: https://secure.phabricator.com/D8066
This commit is contained in:
epriestley
2014-01-25 14:01:58 -08:00
parent f007ed6263
commit dd944f7d83
5 changed files with 121 additions and 44 deletions

View File

@@ -47,6 +47,11 @@ abstract class PhabricatorRepositoryEngine {
}
public function getViewer() {
return PhabricatorUser::getOmnipotentUser();
}
/**
* @task internal
*/