X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/ca8b854cbf353ed87fd9284d50f69229bf40e22d..6dd8fafabb5b8e266a85f13c8851ca8a66a1a405:/stgit/commands/series.py diff --git a/stgit/commands/series.py b/stgit/commands/series.py index 402356c..2c75876 100644 --- a/stgit/commands/series.py +++ b/stgit/commands/series.py @@ -22,6 +22,7 @@ from optparse import OptionParser, make_option import stgit.commands.common from stgit.commands.common import * from stgit.utils import * +from stgit.out import * from stgit import stack, git @@ -33,6 +34,7 @@ range. The applied patches are prefixed with a '+', the unapplied ones with a '-' and the hidden ones with a '!'. The current patch is prefixed with a '>'. Empty patches are prefixed with a '0'.""" +directory = DirectoryHasRepository() options = [make_option('-b', '--branch', help = 'use BRANCH instead of the default one'), make_option('-a', '--all', @@ -109,6 +111,9 @@ def func(parser, options, args): """ global crt_series + if options.all and options.short: + raise CmdException, 'combining --all and --short is meaningless' + # current series patches if options.invisible: applied = unapplied = [] @@ -181,7 +186,7 @@ def func(parser, options, args): return if options.showbranch: - branch_str = '@' + crt_series.get_branch() + branch_str = '@' + crt_series.get_name() else: branch_str = '' @@ -215,4 +220,4 @@ def func(parser, options, args): __print_patch(p, branch_str, '- ', '0 ', max_len, options) for p in hidden: - __print_patch(p, branch_str, '! ', '0 ', max_len, options) + __print_patch(p, branch_str, '! ', '! ', max_len, options)