From 0718a413fdf3d82d02385ca81fafccaae12ab908 Mon Sep 17 00:00:00 2001 From: epriestley Date: Sun, 6 Nov 2011 17:56:13 -0800 Subject: [PATCH] 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 --- src/repository/api/base/ArcanistRepositoryAPI.php | 7 ------- src/repository/api/base/__init__.php | 1 - 2 files changed, 8 deletions(-) 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'); -- 2.43.0