From 9fdee384c3022847ac62488c4643803bdd66395b Mon Sep 17 00:00:00 2001 From: "jkummerow@chromium.org" Date: Fri, 10 Jan 2014 13:48:43 +0000 Subject: [PATCH] Add more temporary debugging output to PRESUBMIT.py R=machenbach@chromium.org Review URL: https://codereview.chromium.org/133863002 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@18538 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- PRESUBMIT.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/PRESUBMIT.py b/PRESUBMIT.py index 5eee2ba..71907be 100644 --- a/PRESUBMIT.py +++ b/PRESUBMIT.py @@ -61,10 +61,12 @@ def _CommonChecks(input_api, output_api): def _SkipTreeCheck(input_api, output_api): """Check the env var whether we want to skip tree check. Only skip if src/version.cc has been updated.""" + print "skip tree check?", input_api.environ.get('PRESUBMIT_TREE_CHECK') src_version = 'src/version.cc' - FilterFile = lambda file: file.LocalPath() == src_version - if not input_api.AffectedSourceFiles( - lambda file: file.LocalPath() == src_version): + def FilterFile(file): + print "Changed file:", file.LocalPath() + return file.LocalPath() == src_version + if not input_api.AffectedSourceFiles(FilterFile): return False if input_api.environ.get('PRESUBMIT_TREE_CHECK') == 'skip': print "Skip tree check requested via environment variable." -- 2.7.4