[CFE] Exclude deleted files from presubmit checks.
Otherwise, explicit creation check tries to check moved file in old location and fails.
R=johnniwinther@google.com
Change-Id: I2edfa3f5230045458c2defb310abb475800037ba
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/351481
Auto-Submit: Morgan :) <davidmorgan@google.com>
Reviewed-by: Jens Johansen <jensj@google.com>
Commit-Queue: Jens Johansen <jensj@google.com>
diff --git a/pkg/front_end/presubmit_helper.dart b/pkg/front_end/presubmit_helper.dart
index aff5925..9cf984d 100644
--- a/pkg/front_end/presubmit_helper.dart
+++ b/pkg/front_end/presubmit_helper.dart
@@ -323,6 +323,7 @@
for (String line in result.stdout.toString().split("\n")) {
List<String> split = line.split("\t");
if (split.length != 2) continue;
+ if (split[0] == 'D') continue; // Don't check deleted files.
String path = split[1].trim().replaceAll("\\", "/");
paths.add(path);
}