mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-22 14:52:40 +01:00
Don't flag "Untracked" files in Mercurial as "Uncommitted"
Summary: We incorrectly add the "Uncommitted" flag to untracked files, which causes them to raise various prompts and not respect "--allow-untracked". Test Plan: Ran "arc diff --allow-untracked" in a clean working copy with untracked files, was not fatally error'd. Reviewers: Makinde, jungejason, nh, tuomaspelkonen, aran Reviewed By: Makinde CC: aran, Makinde, epriestley Differential Revision: 1073
This commit is contained in:
parent
9070a123d3
commit
c53a43f54d
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue