Fossil SCM
Add the 'fossil all extra' command.
Commit
f4bcc63fabba1c2bfb3072ad7c6521b8b246b7e2
Parent
ec81aee9156f43f…
1 file changed
+15
-1
+15
-1
| --- src/allrepo.c | ||
| +++ src/allrepo.c | ||
| @@ -58,11 +58,15 @@ | ||
| 58 | 58 | } |
| 59 | 59 | } |
| 60 | 60 | static void collect_argument_value(Blob *pExtra, const char *zArg){ |
| 61 | 61 | const char *zValue = find_option(zArg, 0, 1); |
| 62 | 62 | if( zValue ){ |
| 63 | - blob_appendf(pExtra, " --%s %s", zArg, zValue); | |
| 63 | + if( zValue[0] ){ | |
| 64 | + blob_appendf(pExtra, " --%s %s", zArg, zValue); | |
| 65 | + }else{ | |
| 66 | + blob_appendf(pExtra, " --%s \"\"", zArg); | |
| 67 | + } | |
| 64 | 68 | } |
| 65 | 69 | } |
| 66 | 70 | |
| 67 | 71 | |
| 68 | 72 | /* |
| @@ -132,10 +136,20 @@ | ||
| 132 | 136 | zCmd = g.argv[2]; |
| 133 | 137 | if( g.zLogin ) blob_appendf(&extra, " -U %s", g.zLogin); |
| 134 | 138 | if( strncmp(zCmd, "list", n)==0 || strncmp(zCmd,"ls",n)==0 ){ |
| 135 | 139 | zCmd = "list"; |
| 136 | 140 | useCheckouts = find_option("ckout","c",0)!=0; |
| 141 | + }else if( strncmp(zCmd, "extra", n)==0 ){ | |
| 142 | + zCmd = "extra --chdir"; | |
| 143 | + collect_argument(&extra, "abs-paths",0); | |
| 144 | + collect_argument_value(&extra, "case-sensitive"); | |
| 145 | + collect_argument(&extra, "dotfiles",0); | |
| 146 | + collect_argument_value(&extra, "ignore"); | |
| 147 | + collect_argument(&extra, "rel-paths",0); | |
| 148 | + useCheckouts = 1; | |
| 149 | + stopOnError = 0; | |
| 150 | + quiet = 1; | |
| 137 | 151 | }else if( strncmp(zCmd, "push", n)==0 ){ |
| 138 | 152 | zCmd = "push -autourl -R"; |
| 139 | 153 | collect_argument(&extra, "verbose","v"); |
| 140 | 154 | }else if( strncmp(zCmd, "pull", n)==0 ){ |
| 141 | 155 | zCmd = "pull -autourl -R"; |
| 142 | 156 |
| --- src/allrepo.c | |
| +++ src/allrepo.c | |
| @@ -58,11 +58,15 @@ | |
| 58 | } |
| 59 | } |
| 60 | static void collect_argument_value(Blob *pExtra, const char *zArg){ |
| 61 | const char *zValue = find_option(zArg, 0, 1); |
| 62 | if( zValue ){ |
| 63 | blob_appendf(pExtra, " --%s %s", zArg, zValue); |
| 64 | } |
| 65 | } |
| 66 | |
| 67 | |
| 68 | /* |
| @@ -132,10 +136,20 @@ | |
| 132 | zCmd = g.argv[2]; |
| 133 | if( g.zLogin ) blob_appendf(&extra, " -U %s", g.zLogin); |
| 134 | if( strncmp(zCmd, "list", n)==0 || strncmp(zCmd,"ls",n)==0 ){ |
| 135 | zCmd = "list"; |
| 136 | useCheckouts = find_option("ckout","c",0)!=0; |
| 137 | }else if( strncmp(zCmd, "push", n)==0 ){ |
| 138 | zCmd = "push -autourl -R"; |
| 139 | collect_argument(&extra, "verbose","v"); |
| 140 | }else if( strncmp(zCmd, "pull", n)==0 ){ |
| 141 | zCmd = "pull -autourl -R"; |
| 142 |
| --- src/allrepo.c | |
| +++ src/allrepo.c | |
| @@ -58,11 +58,15 @@ | |
| 58 | } |
| 59 | } |
| 60 | static void collect_argument_value(Blob *pExtra, const char *zArg){ |
| 61 | const char *zValue = find_option(zArg, 0, 1); |
| 62 | if( zValue ){ |
| 63 | if( zValue[0] ){ |
| 64 | blob_appendf(pExtra, " --%s %s", zArg, zValue); |
| 65 | }else{ |
| 66 | blob_appendf(pExtra, " --%s \"\"", zArg); |
| 67 | } |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | |
| 72 | /* |
| @@ -132,10 +136,20 @@ | |
| 136 | zCmd = g.argv[2]; |
| 137 | if( g.zLogin ) blob_appendf(&extra, " -U %s", g.zLogin); |
| 138 | if( strncmp(zCmd, "list", n)==0 || strncmp(zCmd,"ls",n)==0 ){ |
| 139 | zCmd = "list"; |
| 140 | useCheckouts = find_option("ckout","c",0)!=0; |
| 141 | }else if( strncmp(zCmd, "extra", n)==0 ){ |
| 142 | zCmd = "extra --chdir"; |
| 143 | collect_argument(&extra, "abs-paths",0); |
| 144 | collect_argument_value(&extra, "case-sensitive"); |
| 145 | collect_argument(&extra, "dotfiles",0); |
| 146 | collect_argument_value(&extra, "ignore"); |
| 147 | collect_argument(&extra, "rel-paths",0); |
| 148 | useCheckouts = 1; |
| 149 | stopOnError = 0; |
| 150 | quiet = 1; |
| 151 | }else if( strncmp(zCmd, "push", n)==0 ){ |
| 152 | zCmd = "push -autourl -R"; |
| 153 | collect_argument(&extra, "verbose","v"); |
| 154 | }else if( strncmp(zCmd, "pull", n)==0 ){ |
| 155 | zCmd = "pull -autourl -R"; |
| 156 |