Fossil SCM

When autosync is enabled, do both a PUSH and a PULL following each commit. Adding the PULL here makes detection of a fork work better.

drh 2013-01-14 01:54 trunk
Commit bee86ff39af2bc761291f9eb5b3586e742a3279d
1 file changed +1 -1
+1 -1
--- src/checkin.c
+++ src/checkin.c
@@ -1527,11 +1527,11 @@
15271527
exit(1);
15281528
}
15291529
db_end_transaction(0);
15301530
15311531
if( !g.markPrivate ){
1532
- autosync(SYNC_PUSH);
1532
+ autosync(SYNC_PUSH|SYNC_PULL);
15331533
}
15341534
if( count_nonbranch_children(vid)>1 ){
15351535
fossil_print("**** warning: a fork has occurred *****\n");
15361536
}
15371537
}
15381538
--- src/checkin.c
+++ src/checkin.c
@@ -1527,11 +1527,11 @@
1527 exit(1);
1528 }
1529 db_end_transaction(0);
1530
1531 if( !g.markPrivate ){
1532 autosync(SYNC_PUSH);
1533 }
1534 if( count_nonbranch_children(vid)>1 ){
1535 fossil_print("**** warning: a fork has occurred *****\n");
1536 }
1537 }
1538
--- src/checkin.c
+++ src/checkin.c
@@ -1527,11 +1527,11 @@
1527 exit(1);
1528 }
1529 db_end_transaction(0);
1530
1531 if( !g.markPrivate ){
1532 autosync(SYNC_PUSH|SYNC_PULL);
1533 }
1534 if( count_nonbranch_children(vid)>1 ){
1535 fossil_print("**** warning: a fork has occurred *****\n");
1536 }
1537 }
1538

Keyboard Shortcuts

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