Fossil SCM

Minor tweaks to the wording of the warning message that is show when commited to a moved branch.

drh 2024-12-04 11:58 show-branch-change
Commit 8cfa177f648beebe3027d491a22be6ae04cc7696ac877bf4765c1d1da4593bdd
1 file changed +6 -3
+6 -3
--- src/checkin.c
+++ src/checkin.c
@@ -2538,13 +2538,16 @@
25382538
if( zCurBranch!=0 && zCurBranch[0]!=0
25392539
&& forceFlag==0
25402540
&& noPrompt==0
25412541
){
25422542
zNewBranch = branch_of_rid(vid);
2543
- fossil_warning("parent check-in [%.10s] branch changed from '%s' to '%s'",
2544
- rid_to_uuid(vid), zCurBranch, zNewBranch);
2545
- prompt_user("continue (y/N)? ", &ans);
2543
+ fossil_warning(
2544
+ "WARNING: The parent check-in [%.10s] has been moved from branch\n"
2545
+ " '%s' over to branch '%s'.",
2546
+ rid_to_uuid(vid), zCurBranch, zNewBranch
2547
+ );
2548
+ prompt_user("Commit anyway? (y/N) ", &ans);
25462549
cReply = blob_str(&ans)[0];
25472550
blob_reset(&ans);
25482551
if( cReply!='y' && cReply!='Y' ){
25492552
fossil_fatal("Abandoning commit because branch has changed");
25502553
}
25512554
--- src/checkin.c
+++ src/checkin.c
@@ -2538,13 +2538,16 @@
2538 if( zCurBranch!=0 && zCurBranch[0]!=0
2539 && forceFlag==0
2540 && noPrompt==0
2541 ){
2542 zNewBranch = branch_of_rid(vid);
2543 fossil_warning("parent check-in [%.10s] branch changed from '%s' to '%s'",
2544 rid_to_uuid(vid), zCurBranch, zNewBranch);
2545 prompt_user("continue (y/N)? ", &ans);
 
 
 
2546 cReply = blob_str(&ans)[0];
2547 blob_reset(&ans);
2548 if( cReply!='y' && cReply!='Y' ){
2549 fossil_fatal("Abandoning commit because branch has changed");
2550 }
2551
--- src/checkin.c
+++ src/checkin.c
@@ -2538,13 +2538,16 @@
2538 if( zCurBranch!=0 && zCurBranch[0]!=0
2539 && forceFlag==0
2540 && noPrompt==0
2541 ){
2542 zNewBranch = branch_of_rid(vid);
2543 fossil_warning(
2544 "WARNING: The parent check-in [%.10s] has been moved from branch\n"
2545 " '%s' over to branch '%s'.",
2546 rid_to_uuid(vid), zCurBranch, zNewBranch
2547 );
2548 prompt_user("Commit anyway? (y/N) ", &ans);
2549 cReply = blob_str(&ans)[0];
2550 blob_reset(&ans);
2551 if( cReply!='y' && cReply!='Y' ){
2552 fossil_fatal("Abandoning commit because branch has changed");
2553 }
2554

Keyboard Shortcuts

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