From a644ad3280b52bd3000a94abf0dd1538b8c1ff09 Mon Sep 17 00:00:00 2001 From: mbonadei Date: Wed, 10 May 2017 05:21:55 -0700 Subject: [PATCH] Orphan headers should check only added files This CL makes the presubmit check less strict. We can modify untracked headers but we cannot added them anymore. In the meatime I am spawning a lot of bugs to fix the currently untracked headers. BUG=webrtc:7514 NOTRY=True TBR=kjellander@webrtc.org Review-Url: https://codereview.webrtc.org/2873223004 Cr-Commit-Position: refs/heads/master@{#18080} --- PRESUBMIT.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PRESUBMIT.py b/PRESUBMIT.py index e13c9a05a4..e2d0dd50d0 100755 --- a/PRESUBMIT.py +++ b/PRESUBMIT.py @@ -623,7 +623,7 @@ def _CheckOrphanHeaders(input_api, output_api): sys.path = original_sys_path for f in input_api.AffectedSourceFiles(input_api.FilterSourceFile): - if f.LocalPath().endswith('.h'): + if f.LocalPath().endswith('.h') and f.Action() == 'A': file_path = os.path.abspath(f.LocalPath()) root_dir = os.getcwd() gn_file_path = GetBuildGnPathFromFilePath(file_path, os.path.exists,