From: epriestley Date: Mon, 7 Nov 2011 01:56:13 +0000 (-0800) Subject: Remove "mercurial support is imaginary" warning from Arcanist X-Git-Tag: conduit-4~244 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=0718a413fdf3d82d02385ca81fafccaae12ab908;p=arcanist.git Remove "mercurial support is imaginary" warning from Arcanist 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 --- diff --git a/src/repository/api/base/ArcanistRepositoryAPI.php b/src/repository/api/base/ArcanistRepositoryAPI.php index 563b6c7f..c447c5d8 100644 --- a/src/repository/api/base/ArcanistRepositoryAPI.php +++ b/src/repository/api/base/ArcanistRepositoryAPI.php @@ -70,16 +70,9 @@ abstract class ArcanistRepositoryAPI { } 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)) { diff --git a/src/repository/api/base/__init__.php b/src/repository/api/base/__init__.php index e78e816c..b0541b0a 100644 --- a/src/repository/api/base/__init__.php +++ b/src/repository/api/base/__init__.php @@ -9,7 +9,6 @@ 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');