import stgit.commands.common
from stgit.commands.common import *
from stgit.utils import *
+from stgit.out import *
from stgit import stack, git
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',
"""
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 = []
return
if options.showbranch:
- branch_str = '@' + crt_series.get_branch()
+ branch_str = '@' + crt_series.get_name()
else:
branch_str = ''
__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)