Check the env var whether we want to skip tree check. Only skip if include/v8-version.h has been updated.
(input_api, output_api)
| 501 | |
| 502 | |
| 503 | def _SkipTreeCheck(input_api, output_api): |
| 504 | """Check the env var whether we want to skip tree check. |
| 505 | Only skip if include/v8-version.h has been updated.""" |
| 506 | src_version = 'include/v8-version.h' |
| 507 | if not input_api.AffectedSourceFiles( |
| 508 | lambda file: file.LocalPath() == src_version): |
| 509 | return False |
| 510 | return input_api.environ.get('PRESUBMIT_TREE_CHECK') == 'skip' |
| 511 | |
| 512 | |
| 513 | def _CheckCommitMessageBugEntry(input_api, output_api): |
no test coverage detected
searching dependent graphs…