Make the default to *not* include stable branch commits.

This commit is contained in:
Russell Bryant 2013-05-29 10:20:23 -04:00
parent 6448bbfe02
commit 50f09f0a17
1 changed files with 3 additions and 3 deletions

View File

@ -33,8 +33,8 @@ optparser.add_option('-a', '--all', action='store_true',
help='Generate stats across all known projects (*.json)') help='Generate stats across all known projects (*.json)')
optparser.add_option('-u', '--user', default='russellb', help='gerrit user') optparser.add_option('-u', '--user', default='russellb', help='gerrit user')
optparser.add_option('-k', '--key', default=None, help='ssh key for gerrit') optparser.add_option('-k', '--key', default=None, help='ssh key for gerrit')
optparser.add_option('-n', '--no-stable', action='store_true', optparser.add_option('-s', '--stable', action='store_true',
help='Exclude changesets for stable branch)') help='Include stable branch commits')
optparser.add_option('-l', '--longest-waiting', type='int', default=5, optparser.add_option('-l', '--longest-waiting', type='int', default=5,
help='Show n changesets that have waited the longest)') help='Show n changesets that have waited the longest)')
optparser.add_option('-m', '--waiting-more', type='int', default=7, optparser.add_option('-m', '--waiting-more', type='int', default=7,
@ -68,7 +68,7 @@ def sec_to_period_string(seconds):
for change in changes: for change in changes:
if 'rowCount' in change: if 'rowCount' in change:
continue continue
if options.no_stable and 'stable' in change['branch']: if not options.stable and 'stable' in change['branch']:
continue continue
latest_patch = change['patchSets'][-1] latest_patch = change['patchSets'][-1]
waiting_for_review = True waiting_for_review = True