'clean': 'clean',
'clone': 'clone',
'commit': 'commit',
+ 'cp': 'copy',
'export': 'export',
'files': 'files',
'float': 'float',
'rm': 'rm',
'series': 'series',
'show': 'show',
+ 'sink': 'sink',
'status': 'status',
'sync': 'sync',
'top': 'top',
# classification: repository, stack, patch, working copy
repocommands = (
- 'branch',
'clone',
'id',
- 'pull'
)
stackcommands = (
'applied',
'assimilate',
+ 'branch',
'clean',
'commit',
'float',
'goto',
'hide',
'init',
+ 'patches',
'pop',
+ 'pull',
'push',
'rebase',
'series',
+ 'sink',
'top',
'unapplied',
'uncommit',
- 'unhide'
+ 'unhide',
)
patchcommands = (
'delete',
'refresh',
'rename',
'show',
- 'sync'
+ 'sync',
)
wccommands = (
'add',
+ 'cp',
'diff',
- 'patches',
'resolved',
'rm',
- 'status'
+ 'status',
)
def _print_helpstring(cmd):
from stgit.git import GitException
from stgit.commands.common import CmdException
from stgit.gitmergeonefile import GitMergeException
+ from stgit.utils import EditorException
try:
debug_level = int(os.environ['STGIT_DEBUG_LEVEL'])
command.func(parser, options, args)
except (IOError, ParsingError, NoSectionError, CmdException,
- StackException, GitException, GitMergeException), err:
+ StackException, GitException, GitMergeException,
+ EditorException), err:
print >> sys.stderr, '%s %s: %s' % (prog, cmd, err)
if debug_level:
raise