| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2013 The Chromium Authors. All rights reserved. | 2 # Copyright 2013 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 """Usage: %prog [options] [<commitref>]* | 6 """Usage: %prog [options] [<commitref>]* |
| 7 | 7 |
| 8 If no <commitref>'s are supplied, it defaults to HEAD. | 8 If no <commitref>'s are supplied, it defaults to HEAD. |
| 9 | 9 |
| 10 Calculates the generation number for one or more commits in a git repo. | 10 Calculates the generation number for one or more commits in a git repo. |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 finalize(targets) | 258 finalize(targets) |
| 259 | 259 |
| 260 print '\n'.join(map(str, map(get_num, targets))) | 260 print '\n'.join(map(str, map(get_num, targets))) |
| 261 return 0 | 261 return 0 |
| 262 except KeyboardInterrupt: | 262 except KeyboardInterrupt: |
| 263 return 1 | 263 return 1 |
| 264 | 264 |
| 265 | 265 |
| 266 if __name__ == '__main__': # pragma: no cover | 266 if __name__ == '__main__': # pragma: no cover |
| 267 sys.exit(main()) | 267 sys.exit(main()) |
| OLD | NEW |