Overview
SHA1 Hash: | e85b538fa8168437ebfb2bb9dff117e274cd40cf |
---|---|
Date: | 2009-08-09 21:39:42 |
User: | bch |
Comment: | make "ls" an alias for "list" in "fossil all [bad-link: x]x" command. i.e.: fossil all ls == fossil all list. |
Timelines: | ancestors | descendants | both | trunk |
Other Links: | files | ZIP archive | manifest |
Tags And Properties
- branch=trunk inherited from [a28c83647d]
- sym-trunk inherited from [a28c83647d]
Changes
[hide diffs]Modified src/allrepo.c from [cc52a38ad8] to [c9f89e211d].
@@ -55,18 +55,18 @@ /* ** COMMAND: all ** -** Usage: %fossil all (list|pull|push|rebuild|sync) +** Usage: %fossil all (list|ls|pull|push|rebuild|sync) ** ** The ~/.fossil file records the location of all repositories for a ** user. This command performs certain operations on all repositories ** that can be useful before or after a period of disconnection operation. ** Available operations are: ** -** list Display the location of all repositories +** list|ls Display the location of all repositories ** ** pull Run a "pull" operation on all repositories ** ** push Run a "push" on all repositories ** @@ -86,16 +86,18 @@ char *zFossil; char *zQFilename; int nMissing; if( g.argc<3 ){ - usage("list|pull|push|rebuild|sync"); + usage("list|ls|pull|push|rebuild|sync"); } n = strlen(g.argv[2]); db_open_config(); zCmd = g.argv[2]; if( strncmp(zCmd, "list", n)==0 ){ + zCmd = "list"; + }else if( strncmp(zCmd, "ls", n)==0 ){ /* alias for "list" above */ zCmd = "list"; }else if( strncmp(zCmd, "push", n)==0 ){ zCmd = "push -autourl -R"; }else if( strncmp(zCmd, "pull", n)==0 ){ zCmd = "pull -autourl -R";