Fossil SCM
Add -s and --stop as aliases for --stop-on-error in the "fossil all" command.
Commit
7ec232ab3c6c2b3edf838ccfde48662eafcaa347835ba3a343659d2633966610
Parent
8e6c55aca1dd227…
1 file changed
+3
-1
+3
-1
| --- src/allrepo.c | ||
| +++ src/allrepo.c | ||
| @@ -157,13 +157,14 @@ | ||
| 157 | 157 | ** when one of the following commands are run against the repository: |
| 158 | 158 | ** clone, info, pull, push, or sync. Even previously ignored repositories |
| 159 | 159 | ** are added back to the list of repositories by these commands. |
| 160 | 160 | ** |
| 161 | 161 | ** Options: |
| 162 | -** --dry-run If given, display instead of run actions | |
| 162 | +** --dry-run Just display commands that would have run | |
| 163 | 163 | ** --showfile Show the repository or check-out being operated upon |
| 164 | 164 | ** --stop-on-error Halt immediately if any subprocess fails |
| 165 | +** -s|--stop Shorthand for "--stop-on-error" | |
| 165 | 166 | */ |
| 166 | 167 | void all_cmd(void){ |
| 167 | 168 | Stmt q; |
| 168 | 169 | const char *zCmd; |
| 169 | 170 | char *zSyscmd; |
| @@ -176,10 +177,11 @@ | ||
| 176 | 177 | int nToDel = 0; |
| 177 | 178 | int showLabel = 0; |
| 178 | 179 | |
| 179 | 180 | (void)find_option("dontstop",0,0); /* Legacy. Now the default */ |
| 180 | 181 | stopOnError = find_option("stop-on-error",0,0)!=0; |
| 182 | + if( find_option("stop","s",0)!=0 ) stopOnError = 1; | |
| 181 | 183 | dryRunFlag = find_option("dry-run","n",0)!=0; |
| 182 | 184 | if( !dryRunFlag ){ |
| 183 | 185 | dryRunFlag = find_option("test",0,0)!=0; /* deprecated */ |
| 184 | 186 | } |
| 185 | 187 | |
| 186 | 188 |
| --- src/allrepo.c | |
| +++ src/allrepo.c | |
| @@ -157,13 +157,14 @@ | |
| 157 | ** when one of the following commands are run against the repository: |
| 158 | ** clone, info, pull, push, or sync. Even previously ignored repositories |
| 159 | ** are added back to the list of repositories by these commands. |
| 160 | ** |
| 161 | ** Options: |
| 162 | ** --dry-run If given, display instead of run actions |
| 163 | ** --showfile Show the repository or check-out being operated upon |
| 164 | ** --stop-on-error Halt immediately if any subprocess fails |
| 165 | */ |
| 166 | void all_cmd(void){ |
| 167 | Stmt q; |
| 168 | const char *zCmd; |
| 169 | char *zSyscmd; |
| @@ -176,10 +177,11 @@ | |
| 176 | int nToDel = 0; |
| 177 | int showLabel = 0; |
| 178 | |
| 179 | (void)find_option("dontstop",0,0); /* Legacy. Now the default */ |
| 180 | stopOnError = find_option("stop-on-error",0,0)!=0; |
| 181 | dryRunFlag = find_option("dry-run","n",0)!=0; |
| 182 | if( !dryRunFlag ){ |
| 183 | dryRunFlag = find_option("test",0,0)!=0; /* deprecated */ |
| 184 | } |
| 185 | |
| 186 |
| --- src/allrepo.c | |
| +++ src/allrepo.c | |
| @@ -157,13 +157,14 @@ | |
| 157 | ** when one of the following commands are run against the repository: |
| 158 | ** clone, info, pull, push, or sync. Even previously ignored repositories |
| 159 | ** are added back to the list of repositories by these commands. |
| 160 | ** |
| 161 | ** Options: |
| 162 | ** --dry-run Just display commands that would have run |
| 163 | ** --showfile Show the repository or check-out being operated upon |
| 164 | ** --stop-on-error Halt immediately if any subprocess fails |
| 165 | ** -s|--stop Shorthand for "--stop-on-error" |
| 166 | */ |
| 167 | void all_cmd(void){ |
| 168 | Stmt q; |
| 169 | const char *zCmd; |
| 170 | char *zSyscmd; |
| @@ -176,10 +177,11 @@ | |
| 177 | int nToDel = 0; |
| 178 | int showLabel = 0; |
| 179 | |
| 180 | (void)find_option("dontstop",0,0); /* Legacy. Now the default */ |
| 181 | stopOnError = find_option("stop-on-error",0,0)!=0; |
| 182 | if( find_option("stop","s",0)!=0 ) stopOnError = 1; |
| 183 | dryRunFlag = find_option("dry-run","n",0)!=0; |
| 184 | if( !dryRunFlag ){ |
| 185 | dryRunFlag = find_option("test",0,0)!=0; /* deprecated */ |
| 186 | } |
| 187 | |
| 188 |