[cig-commits] commit: shorten command names
Mercurial
hg at geodynamics.org
Mon Nov 24 11:26:46 PST 2008
changeset: 2:2fb8977ed545
user: Robin Farine <robin.farine at terminus.org>
date: Wed Jul 19 11:24:51 2006 +0200
files: forest.py
description:
shorten command names
diff -r 001a058bb63c -r 2fb8977ed545 forest.py
--- a/forest.py Mon Jul 17 01:16:38 2006 +0200
+++ b/forest.py Wed Jul 19 11:24:51 2006 +0200
@@ -19,9 +19,9 @@ each tree with the following attributes:
revision the revision the working directory is based on
paths a list of (alias, location) pairs
-The 'forest-snapshot' command generates or updates such a file based
-on a forest in the file system. Other commands use this information to
-populate a forest or to pull/push changes.
+The 'fsnap' command generates or updates such a file based on a forest
+in the file system. Other commands use this information to populate a
+forest or to pull/push changes.
"""
version = "0.1"
@@ -41,7 +41,7 @@ from mercurial.i18n import gettext as _
from mercurial.i18n import gettext as _
from mercurial.repo import RepoError
-commands.norepo += " forest-clone"
+commands.norepo += " fclone"
def cmd_options(cmd, remove=None):
@@ -330,32 +330,32 @@ def trees(ui, repo):
cmdtable = {
- "forest-clone" :
+ "fclone" :
(clone,
cmd_options('clone', remove=('r',)),
- _('hg forest-clone [OPTIONS] SOURCE DESTINATION')),
- "forest-pull" :
+ _('hg fclone [OPTIONS] SOURCE DESTINATION')),
+ "fpull" :
(pull,
cmd_options('pull', remove=('f', 'r')),
- _('hg forest-pull [OPTIONS] SNAPSHOT-FILE PATH-ALIAS')),
- "forest-push" :
+ _('hg fpull [OPTIONS] SNAPSHOT-FILE PATH-ALIAS')),
+ "fpush" :
(push,
cmd_options('push', remove=('f', 'r')),
- _('hg forest-push [OPTIONS] SNAPSHOT-FILE PATH-ALIAS')),
- "forest-seed" :
+ _('hg fpush [OPTIONS] SNAPSHOT-FILE PATH-ALIAS')),
+ "fseed" :
(seed,
[('', 'tip', None,
_("use tip instead of revisions stored in the snapshot file"))] +
cmd_options('clone', remove=('r',)),
- _('hg forest-seed [OPTIONS] SNAPSHOT-FILE PATH-ALIAS')),
- "forest-snapshot" :
+ _('hg fseed [OPTIONS] SNAPSHOT-FILE PATH-ALIAS')),
+ "fsnap" :
(snapshot, [],
- 'hg forest-snapshot [SNAPSHOT-FILE]'),
- "forest-status" :
+ 'hg fsnap [SNAPSHOT-FILE]'),
+ "fstatus" :
(status,
cmd_options('status'),
- _('hg forest-status [OPTIONS]')),
- "forest-trees" :
+ _('hg fstatus [OPTIONS]')),
+ "ftrees" :
(trees, [],
- 'hg forest-trees'),
+ 'hg ftrees'),
}
More information about the CIG-COMMITS
mailing list