X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/7c02f338c0e6386b322b520c0805a095a0fa2aa1..9f00453e337990a34a432a08340799fe628bd4d2:/stgit/commands/series.py diff --git a/stgit/commands/series.py b/stgit/commands/series.py index 263f393..7ed88c0 100644 --- a/stgit/commands/series.py +++ b/stgit/commands/series.py @@ -33,6 +33,10 @@ prefixed with a '>'. Empty patches are prefixed with a '0'.""" options = [make_option('-b', '--branch', help = 'use BRANCH instead of the default one')] +options = [make_option('-e', '--empty', + help = 'check whether patches are empty ' + '(much slower)', + action = 'store_true') ] def func(parser, options, args): @@ -44,19 +48,19 @@ def func(parser, options, args): applied = crt_series.get_applied() if len(applied) > 0: for p in applied [0:-1]: - if crt_series.empty_patch(p): + if options.empty and crt_series.empty_patch(p): print '0', p else: print '+', p p = applied[-1] - if crt_series.empty_patch(p): + if options.empty and crt_series.empty_patch(p): print '0>%s' % p else: print '> %s' % p for p in crt_series.get_unapplied(): - if crt_series.empty_patch(p): + if options.empty and crt_series.empty_patch(p): print '0', p else: print '-', p