chiark
/
gitweb
/
~mdw
/
stgit
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rename "bury" back to "sink".
[stgit]
/
stgit
/
main.py
diff --git
a/stgit/main.py
b/stgit/main.py
index 933f12717cb61e0ba7bfbd762a0faa537a069bb8..1a1f534e310e4423feca92a47bbb1d0c68537d16 100644
(file)
--- a/
stgit/main.py
+++ b/
stgit/main.py
@@
-68,6
+68,7
@@
commands = Commands({
'clean': 'clean',
'clone': 'clone',
'commit': 'commit',
'clean': 'clean',
'clone': 'clone',
'commit': 'commit',
+ 'cp': 'copy',
'export': 'export',
'files': 'files',
'float': 'float',
'export': 'export',
'files': 'files',
'float': 'float',
@@
-92,6
+93,7
@@
commands = Commands({
'rm': 'rm',
'series': 'series',
'show': 'show',
'rm': 'rm',
'series': 'series',
'show': 'show',
+ 'sink': 'sink',
'status': 'status',
'sync': 'sync',
'top': 'top',
'status': 'status',
'sync': 'sync',
'top': 'top',
@@
-102,28
+104,30
@@
commands = Commands({
# classification: repository, stack, patch, working copy
repocommands = (
# classification: repository, stack, patch, working copy
repocommands = (
- 'branch',
'clone',
'id',
'clone',
'id',
- 'pull'
)
stackcommands = (
'applied',
'assimilate',
)
stackcommands = (
'applied',
'assimilate',
+ 'branch',
'clean',
'commit',
'float',
'goto',
'hide',
'init',
'clean',
'commit',
'float',
'goto',
'hide',
'init',
+ 'patches',
'pop',
'pop',
+ 'pull',
'push',
'rebase',
'series',
'push',
'rebase',
'series',
+ 'sink',
'top',
'unapplied',
'uncommit',
'top',
'unapplied',
'uncommit',
- 'unhide'
+ 'unhide'
,
)
patchcommands = (
'delete',
)
patchcommands = (
'delete',
@@
-138,15
+142,15
@@
patchcommands = (
'refresh',
'rename',
'show',
'refresh',
'rename',
'show',
- 'sync'
+ 'sync'
,
)
wccommands = (
'add',
)
wccommands = (
'add',
+ 'cp',
'diff',
'diff',
- 'patches',
'resolved',
'rm',
'resolved',
'rm',
- 'status'
+ 'status'
,
)
def _print_helpstring(cmd):
)
def _print_helpstring(cmd):
@@
-256,6
+260,7
@@
def main():
from stgit.git import GitException
from stgit.commands.common import CmdException
from stgit.gitmergeonefile import GitMergeException
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'])
try:
debug_level = int(os.environ['STGIT_DEBUG_LEVEL'])
@@
-279,7
+284,8
@@
def main():
command.func(parser, options, args)
except (IOError, ParsingError, NoSectionError, CmdException,
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
print >> sys.stderr, '%s %s: %s' % (prog, cmd, err)
if debug_level:
raise