Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(91)

Unified Diff: tools/presubmit.py

Issue 2533583002: Presubmit should be able to handle files being deleted. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/presubmit.py
diff --git a/tools/presubmit.py b/tools/presubmit.py
index 553a5ae364152063391c04c6d879789664df205f..4dfa4e690a0bd8cc0813c5b9bde69ca0e7714810 100755
--- a/tools/presubmit.py
+++ b/tools/presubmit.py
@@ -179,7 +179,8 @@ class SourceFileProcessor(object):
all_files = [
f.AbsoluteLocalPath()
for f in files
- if (not self.IgnoreFile(f.LocalPath()) and
+ if (os.path.isfile(f.AbsoluteLocalPath()) and
+ not self.IgnoreFile(f.LocalPath()) and
self.IsRelevant(f.LocalPath()) and
all(not self.IgnoreDir(d) for d in dirs(f.LocalPath())) and
any(map(f.LocalPath().startswith, search_paths)))
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698