Page MenuHomePhabricator

D8888.id21131.diff
No OneTemporary

D8888.id21131.diff

diff --git a/src/workflow/ArcanistBaseWorkflow.php b/src/workflow/ArcanistBaseWorkflow.php
--- a/src/workflow/ArcanistBaseWorkflow.php
+++ b/src/workflow/ArcanistBaseWorkflow.php
@@ -1124,10 +1124,10 @@
}
if (empty($this->changeCache[$path])) {
- if ($is_git) {
- // This can legitimately occur under git if you make a change, "git
- // commit" it, and then revert the change in the working copy and run
- // "arc lint".
+ if ($is_git || $is_hg) {
+ // This can legitimately occur under git/hg if you make a change,
+ // "git/hg commit" it, and then revert the change in the working copy
+ // and run "arc lint".
$change = new ArcanistDiffChange();
$change->setCurrentPath($path);
return $change;

File Metadata

Mime Type
text/plain
Expires
Mon, Mar 10, 5:35 PM (1 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7460997
Default Alt Text
D8888.id21131.diff (789 B)

Event Timeline