diff --git a/src/repository/api/mercurial/ArcanistMercurialAPI.php b/src/repository/api/mercurial/ArcanistMercurialAPI.php index f63b9432..0dc251f1 100644 --- a/src/repository/api/mercurial/ArcanistMercurialAPI.php +++ b/src/repository/api/mercurial/ArcanistMercurialAPI.php @@ -205,6 +205,10 @@ class ArcanistMercurialAPI extends ArcanistRepositoryAPI { $working_status = ArcanistMercurialParser::parseMercurialStatus($stdout); foreach ($working_status as $path => $status) { + if ($status & ArcanistRepositoryAPI::FLAG_UNTRACKED) { + // If the file is untracked, don't mark it uncommitted. + continue; + } $status |= self::FLAG_UNCOMMITTED; if (!empty($status_map[$path])) { $status_map[$path] |= $status;