Fossil SCM
make "ls" an alias for "list" in "fossil all [x]" command. i.e.: fossil all ls == fossil all list.
Commit
e85b538fa8168437ebfb2bb9dff117e274cd40cf
Parent
554d896209e5be8…
1 file changed
+5
-3
+5
-3
| --- src/allrepo.c | ||
| +++ src/allrepo.c | ||
| @@ -55,18 +55,18 @@ | ||
| 55 | 55 | |
| 56 | 56 | |
| 57 | 57 | /* |
| 58 | 58 | ** COMMAND: all |
| 59 | 59 | ** |
| 60 | -** Usage: %fossil all (list|pull|push|rebuild|sync) | |
| 60 | +** Usage: %fossil all (list|ls|pull|push|rebuild|sync) | |
| 61 | 61 | ** |
| 62 | 62 | ** The ~/.fossil file records the location of all repositories for a |
| 63 | 63 | ** user. This command performs certain operations on all repositories |
| 64 | 64 | ** that can be useful before or after a period of disconnection operation. |
| 65 | 65 | ** Available operations are: |
| 66 | 66 | ** |
| 67 | -** list Display the location of all repositories | |
| 67 | +** list|ls Display the location of all repositories | |
| 68 | 68 | ** |
| 69 | 69 | ** pull Run a "pull" operation on all repositories |
| 70 | 70 | ** |
| 71 | 71 | ** push Run a "push" on all repositories |
| 72 | 72 | ** |
| @@ -86,16 +86,18 @@ | ||
| 86 | 86 | char *zFossil; |
| 87 | 87 | char *zQFilename; |
| 88 | 88 | int nMissing; |
| 89 | 89 | |
| 90 | 90 | if( g.argc<3 ){ |
| 91 | - usage("list|pull|push|rebuild|sync"); | |
| 91 | + usage("list|ls|pull|push|rebuild|sync"); | |
| 92 | 92 | } |
| 93 | 93 | n = strlen(g.argv[2]); |
| 94 | 94 | db_open_config(); |
| 95 | 95 | zCmd = g.argv[2]; |
| 96 | 96 | if( strncmp(zCmd, "list", n)==0 ){ |
| 97 | + zCmd = "list"; | |
| 98 | + }else if( strncmp(zCmd, "ls", n)==0 ){ /* alias for "list" above */ | |
| 97 | 99 | zCmd = "list"; |
| 98 | 100 | }else if( strncmp(zCmd, "push", n)==0 ){ |
| 99 | 101 | zCmd = "push -autourl -R"; |
| 100 | 102 | }else if( strncmp(zCmd, "pull", n)==0 ){ |
| 101 | 103 | zCmd = "pull -autourl -R"; |
| 102 | 104 |
| --- src/allrepo.c | |
| +++ src/allrepo.c | |
| @@ -55,18 +55,18 @@ | |
| 55 | |
| 56 | |
| 57 | /* |
| 58 | ** COMMAND: all |
| 59 | ** |
| 60 | ** Usage: %fossil all (list|pull|push|rebuild|sync) |
| 61 | ** |
| 62 | ** The ~/.fossil file records the location of all repositories for a |
| 63 | ** user. This command performs certain operations on all repositories |
| 64 | ** that can be useful before or after a period of disconnection operation. |
| 65 | ** Available operations are: |
| 66 | ** |
| 67 | ** list Display the location of all repositories |
| 68 | ** |
| 69 | ** pull Run a "pull" operation on all repositories |
| 70 | ** |
| 71 | ** push Run a "push" on all repositories |
| 72 | ** |
| @@ -86,16 +86,18 @@ | |
| 86 | char *zFossil; |
| 87 | char *zQFilename; |
| 88 | int nMissing; |
| 89 | |
| 90 | if( g.argc<3 ){ |
| 91 | usage("list|pull|push|rebuild|sync"); |
| 92 | } |
| 93 | n = strlen(g.argv[2]); |
| 94 | db_open_config(); |
| 95 | zCmd = g.argv[2]; |
| 96 | if( strncmp(zCmd, "list", n)==0 ){ |
| 97 | zCmd = "list"; |
| 98 | }else if( strncmp(zCmd, "push", n)==0 ){ |
| 99 | zCmd = "push -autourl -R"; |
| 100 | }else if( strncmp(zCmd, "pull", n)==0 ){ |
| 101 | zCmd = "pull -autourl -R"; |
| 102 |
| --- src/allrepo.c | |
| +++ src/allrepo.c | |
| @@ -55,18 +55,18 @@ | |
| 55 | |
| 56 | |
| 57 | /* |
| 58 | ** COMMAND: all |
| 59 | ** |
| 60 | ** Usage: %fossil all (list|ls|pull|push|rebuild|sync) |
| 61 | ** |
| 62 | ** The ~/.fossil file records the location of all repositories for a |
| 63 | ** user. This command performs certain operations on all repositories |
| 64 | ** that can be useful before or after a period of disconnection operation. |
| 65 | ** Available operations are: |
| 66 | ** |
| 67 | ** list|ls Display the location of all repositories |
| 68 | ** |
| 69 | ** pull Run a "pull" operation on all repositories |
| 70 | ** |
| 71 | ** push Run a "push" on all repositories |
| 72 | ** |
| @@ -86,16 +86,18 @@ | |
| 86 | char *zFossil; |
| 87 | char *zQFilename; |
| 88 | int nMissing; |
| 89 | |
| 90 | if( g.argc<3 ){ |
| 91 | usage("list|ls|pull|push|rebuild|sync"); |
| 92 | } |
| 93 | n = strlen(g.argv[2]); |
| 94 | db_open_config(); |
| 95 | zCmd = g.argv[2]; |
| 96 | if( strncmp(zCmd, "list", n)==0 ){ |
| 97 | zCmd = "list"; |
| 98 | }else if( strncmp(zCmd, "ls", n)==0 ){ /* alias for "list" above */ |
| 99 | zCmd = "list"; |
| 100 | }else if( strncmp(zCmd, "push", n)==0 ){ |
| 101 | zCmd = "push -autourl -R"; |
| 102 | }else if( strncmp(zCmd, "pull", n)==0 ){ |
| 103 | zCmd = "pull -autourl -R"; |
| 104 |