Fossil SCM

Do not print a warning about "a fork has occurred" when checking in to a leaf that is also the basis of a branch.

drh 2009-01-21 03:12 trunk
Commit 8d5ab7913e4d06e074a6769079b6d16a343eef07
1 file changed +1 -1
+1 -1
--- src/checkin.c
+++ src/checkin.c
@@ -644,11 +644,11 @@
644644
645645
/* Commit */
646646
db_end_transaction(0);
647647
648648
autosync(AUTOSYNC_PUSH);
649
- if( db_exists("SELECT 1 FROM plink WHERE pid=%d AND cid!=%d", vid, nvid) ){
649
+ if( count_nonbranch_children(vid)>1 ){
650650
printf("**** warning: a fork has occurred *****\n");
651651
}
652652
}
653653
654654
/*
655655
--- src/checkin.c
+++ src/checkin.c
@@ -644,11 +644,11 @@
644
645 /* Commit */
646 db_end_transaction(0);
647
648 autosync(AUTOSYNC_PUSH);
649 if( db_exists("SELECT 1 FROM plink WHERE pid=%d AND cid!=%d", vid, nvid) ){
650 printf("**** warning: a fork has occurred *****\n");
651 }
652 }
653
654 /*
655
--- src/checkin.c
+++ src/checkin.c
@@ -644,11 +644,11 @@
644
645 /* Commit */
646 db_end_transaction(0);
647
648 autosync(AUTOSYNC_PUSH);
649 if( count_nonbranch_children(vid)>1 ){
650 printf("**** warning: a fork has occurred *****\n");
651 }
652 }
653
654 /*
655

Keyboard Shortcuts

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