Fossil SCM

Add -s and --stop as aliases for --stop-on-error in the "fossil all" command.

drh 2025-12-30 20:41 trunk
Commit 7ec232ab3c6c2b3edf838ccfde48662eafcaa347835ba3a343659d2633966610
1 file changed +3 -1
+3 -1
--- src/allrepo.c
+++ src/allrepo.c
@@ -157,13 +157,14 @@
157157
** when one of the following commands are run against the repository:
158158
** clone, info, pull, push, or sync. Even previously ignored repositories
159159
** are added back to the list of repositories by these commands.
160160
**
161161
** Options:
162
-** --dry-run If given, display instead of run actions
162
+** --dry-run Just display commands that would have run
163163
** --showfile Show the repository or check-out being operated upon
164164
** --stop-on-error Halt immediately if any subprocess fails
165
+** -s|--stop Shorthand for "--stop-on-error"
165166
*/
166167
void all_cmd(void){
167168
Stmt q;
168169
const char *zCmd;
169170
char *zSyscmd;
@@ -176,10 +177,11 @@
176177
int nToDel = 0;
177178
int showLabel = 0;
178179
179180
(void)find_option("dontstop",0,0); /* Legacy. Now the default */
180181
stopOnError = find_option("stop-on-error",0,0)!=0;
182
+ if( find_option("stop","s",0)!=0 ) stopOnError = 1;
181183
dryRunFlag = find_option("dry-run","n",0)!=0;
182184
if( !dryRunFlag ){
183185
dryRunFlag = find_option("test",0,0)!=0; /* deprecated */
184186
}
185187
186188
--- 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

Keyboard Shortcuts

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