OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 ''' | 2 ''' |
3 Copyright 2012 Google Inc. | 3 Copyright 2012 Google Inc. |
4 | 4 |
5 Use of this source code is governed by a BSD-style license that can be | 5 Use of this source code is governed by a BSD-style license that can be |
6 found in the LICENSE file. | 6 found in the LICENSE file. |
7 ''' | 7 ''' |
8 | 8 |
9 ''' | 9 ''' |
10 Generates a visual diff of all pending changes in the local SVN (or git!) | 10 Generates a visual diff of all pending changes in the local SVN (or git!) |
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 action='store', type='string', default=None, | 304 action='store', type='string', default=None, |
305 help='existing directory within which to write results; ' | 305 help='existing directory within which to write results; ' |
306 'if not set, will create a temporary directory which ' | 306 'if not set, will create a temporary directory which ' |
307 'will remain in place after this script completes') | 307 'will remain in place after this script completes') |
308 parser.add_option(OPTION_PATH_TO_SKDIFF, | 308 parser.add_option(OPTION_PATH_TO_SKDIFF, |
309 action='store', type='string', default=None, | 309 action='store', type='string', default=None, |
310 help='path to already-built skdiff tool; if not set, ' | 310 help='path to already-built skdiff tool; if not set, ' |
311 'will search for it in typical directories near this ' | 311 'will search for it in typical directories near this ' |
312 'script') | 312 'script') |
313 parser.add_option(OPTION_SOURCE_DIR, | 313 parser.add_option(OPTION_SOURCE_DIR, |
314 action='store', type='string', default='.', | 314 action='store', type='string', |
| 315 default=os.path.join('expectations', 'gm'), |
315 help='root directory within which to compare all ' + | 316 help='root directory within which to compare all ' + |
316 'files; defaults to "%default"') | 317 'files; defaults to "%default"') |
317 (options, args) = parser.parse_args() | 318 (options, args) = parser.parse_args() |
318 Main(options, args) | 319 Main(options, args) |
OLD | NEW |