Summary: We ostensibly now support Mercurial at least mostly, so don't
underpromise quite so much.
Test Plan: Ran "arc diff" in a Mercurial working copy without being warned.
Reviewers: Makinde, jungejason, nh, tuomaspelkonen, aran
Reviewed By: Makinde
CC: aran, Makinde
Differential Revision: 1085
}
if (Filesystem::pathExists($root.'/.hg')) {
- // TODO: Stabilize and remove.
- file_put_contents(
- 'php://stderr',
- phutil_console_format(
- "**WARNING:** Mercurial support is largely imaginary right now.\n"));
-
return newv('ArcanistMercurialAPI', array($root));
}
-
$git_root = self::discoverGitBaseDirectory($root);
if ($git_root) {
if (!Filesystem::pathsAreEquivalent($root, $git_root)) {
phutil_require_module('arcanist', 'exception/usage');
phutil_require_module('arcanist', 'workflow/exception/notsupported');
-phutil_require_module('phutil', 'console');
phutil_require_module('phutil', 'filesystem');
phutil_require_module('phutil', 'future/exec');
phutil_require_module('phutil', 'utils');