]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Remove "mercurial support is imaginary" warning from Arcanist
authorepriestley <git@epriestley.com>
Mon, 7 Nov 2011 01:56:13 +0000 (17:56 -0800)
committerepriestley <git@epriestley.com>
Mon, 7 Nov 2011 02:02:06 +0000 (18:02 -0800)
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

src/repository/api/base/ArcanistRepositoryAPI.php
src/repository/api/base/__init__.php

index 563b6c7f3e29decb9a2af23c98a4e7cc3dd3b4e1..c447c5d8be037ccaccbcb6aadce520951e3705fe 100644 (file)
@@ -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)) {
index e78e816cd6b4a4ca2fd422fdbc745c04a8903bd5..b0541b0aa0b48c239f8edd5b45344621f554e3b7 100644 (file)
@@ -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');