| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 # Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 """Enables directory-specific presubmit checks to run at upload and/or commit. | 6 """Enables directory-specific presubmit checks to run at upload and/or commit. |
| 7 """ | 7 """ |
| 8 | 8 |
| 9 __version__ = '1.0.1' | 9 __version__ = '1.0.1' |
| 10 | 10 |
| (...skipping 692 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 703 print "Found %d files." % len(files) | 703 print "Found %d files." % len(files) |
| 704 return DoPresubmitChecks(gcl.ChangeInfo(name='temp', files=files), | 704 return DoPresubmitChecks(gcl.ChangeInfo(name='temp', files=files), |
| 705 options.commit, | 705 options.commit, |
| 706 options.verbose, | 706 options.verbose, |
| 707 sys.stdout, | 707 sys.stdout, |
| 708 sys.stdin) | 708 sys.stdin) |
| 709 | 709 |
| 710 | 710 |
| 711 if __name__ == '__main__': | 711 if __name__ == '__main__': |
| 712 sys.exit(Main(sys.argv)) | 712 sys.exit(Main(sys.argv)) |
| OLD | NEW |