Fossil SCM

Removed the "or --allow-fork" advice output from "fossil checkin" when forcing the checkin would fork the branch. It's good for Fossil to have this option, especially for automated tooling that needs to just bull forward blindly, but it's bad advice to give to interactive users. Let them discover it via --help, if they learn of it at all.

wyoung 2019-06-16 19:22 trunk
Commit 66d55e9b436c203e64e3db417ad358666e84d278f66d4a2b7cb8d4055ce7e768
1 file changed +2 -2
+2 -2
--- src/checkin.c
+++ src/checkin.c
@@ -2272,18 +2272,18 @@
22722272
*/
22732273
if( !vid ){
22742274
if( sCiInfo.zBranch==0 ){
22752275
if( allowFork==0 && forceFlag==0 && g.markPrivate==0
22762276
&& db_exists("SELECT 1 from event where type='ci'") ){
2277
- fossil_fatal("would fork. \"update\" first or use --allow-fork.");
2277
+ fossil_fatal("would fork. \"update\" first.");
22782278
}
22792279
sCiInfo.zBranch = db_get("main-branch", "trunk");
22802280
}
22812281
}else if( sCiInfo.zBranch==0 && allowFork==0 && forceFlag==0
22822282
&& g.markPrivate==0 && !is_a_leaf(vid)
22832283
){
2284
- fossil_fatal("would fork. \"update\" first or use --allow-fork.");
2284
+ fossil_fatal("would fork. \"update\" first.");
22852285
}
22862286
22872287
/*
22882288
** Do not allow a commit against a closed leaf unless the commit
22892289
** ends up on a different branch.
22902290
--- src/checkin.c
+++ src/checkin.c
@@ -2272,18 +2272,18 @@
2272 */
2273 if( !vid ){
2274 if( sCiInfo.zBranch==0 ){
2275 if( allowFork==0 && forceFlag==0 && g.markPrivate==0
2276 && db_exists("SELECT 1 from event where type='ci'") ){
2277 fossil_fatal("would fork. \"update\" first or use --allow-fork.");
2278 }
2279 sCiInfo.zBranch = db_get("main-branch", "trunk");
2280 }
2281 }else if( sCiInfo.zBranch==0 && allowFork==0 && forceFlag==0
2282 && g.markPrivate==0 && !is_a_leaf(vid)
2283 ){
2284 fossil_fatal("would fork. \"update\" first or use --allow-fork.");
2285 }
2286
2287 /*
2288 ** Do not allow a commit against a closed leaf unless the commit
2289 ** ends up on a different branch.
2290
--- src/checkin.c
+++ src/checkin.c
@@ -2272,18 +2272,18 @@
2272 */
2273 if( !vid ){
2274 if( sCiInfo.zBranch==0 ){
2275 if( allowFork==0 && forceFlag==0 && g.markPrivate==0
2276 && db_exists("SELECT 1 from event where type='ci'") ){
2277 fossil_fatal("would fork. \"update\" first.");
2278 }
2279 sCiInfo.zBranch = db_get("main-branch", "trunk");
2280 }
2281 }else if( sCiInfo.zBranch==0 && allowFork==0 && forceFlag==0
2282 && g.markPrivate==0 && !is_a_leaf(vid)
2283 ){
2284 fossil_fatal("would fork. \"update\" first.");
2285 }
2286
2287 /*
2288 ** Do not allow a commit against a closed leaf unless the commit
2289 ** ends up on a different branch.
2290

Keyboard Shortcuts

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