Fossil SCM

make "ls" an alias for "list" in "fossil all [x]" command. i.e.: fossil all ls == fossil all list.

bch 2009-08-09 21:39 trunk
Commit e85b538fa8168437ebfb2bb9dff117e274cd40cf
1 file changed +5 -3
+5 -3
--- src/allrepo.c
+++ src/allrepo.c
@@ -55,18 +55,18 @@
5555
5656
5757
/*
5858
** COMMAND: all
5959
**
60
-** Usage: %fossil all (list|pull|push|rebuild|sync)
60
+** Usage: %fossil all (list|ls|pull|push|rebuild|sync)
6161
**
6262
** The ~/.fossil file records the location of all repositories for a
6363
** user. This command performs certain operations on all repositories
6464
** that can be useful before or after a period of disconnection operation.
6565
** Available operations are:
6666
**
67
-** list Display the location of all repositories
67
+** list|ls Display the location of all repositories
6868
**
6969
** pull Run a "pull" operation on all repositories
7070
**
7171
** push Run a "push" on all repositories
7272
**
@@ -86,16 +86,18 @@
8686
char *zFossil;
8787
char *zQFilename;
8888
int nMissing;
8989
9090
if( g.argc<3 ){
91
- usage("list|pull|push|rebuild|sync");
91
+ usage("list|ls|pull|push|rebuild|sync");
9292
}
9393
n = strlen(g.argv[2]);
9494
db_open_config();
9595
zCmd = g.argv[2];
9696
if( strncmp(zCmd, "list", n)==0 ){
97
+ zCmd = "list";
98
+ }else if( strncmp(zCmd, "ls", n)==0 ){ /* alias for "list" above */
9799
zCmd = "list";
98100
}else if( strncmp(zCmd, "push", n)==0 ){
99101
zCmd = "push -autourl -R";
100102
}else if( strncmp(zCmd, "pull", n)==0 ){
101103
zCmd = "pull -autourl -R";
102104
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button