Mercurial > hg > hgforest
changeset 2:2fb8977ed545
shorten command names
author | Robin Farine <robin.farine@terminus.org> |
---|---|
date | Wed, 19 Jul 2006 11:24:51 +0200 |
parents | 001a058bb63c |
children | f51a766973c4 |
files | forest.py |
diffstat | 1 files changed, 18 insertions(+), 18 deletions(-) [+] |
line wrap: on
line diff
--- 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 @@ 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.repo import RepoError -commands.norepo += " forest-clone" +commands.norepo += " fclone" def cmd_options(cmd, remove=None): @@ -330,32 +330,32 @@ 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'), }