Fossil SCM

Once a successful commit is made, if autosync is on, a push is now done. This commit will be the first test of that new functionality :-)

jnc 2007-09-25 07:11 trunk
Commit 0431f14edfbc452aea7f3981e03cfb306121551e
1 file changed +8 -1
+8 -1
--- src/checkin.c
+++ src/checkin.c
@@ -522,7 +522,14 @@
522522
523523
/* Clear the undo/redo stack */
524524
undo_reset();
525525
526526
/* Commit */
527
- db_end_transaction(0);
527
+ db_end_transaction(0);
528
+
529
+ /* Autosync and do a push? */
530
+ if( do_autosync() ){
531
+ g.argc=2;
532
+ g.argv[1]="push";
533
+ push_cmd();
534
+ }
528535
}
529536
--- src/checkin.c
+++ src/checkin.c
@@ -522,7 +522,14 @@
522
523 /* Clear the undo/redo stack */
524 undo_reset();
525
526 /* Commit */
527 db_end_transaction(0);
 
 
 
 
 
 
 
528 }
529
--- src/checkin.c
+++ src/checkin.c
@@ -522,7 +522,14 @@
522
523 /* Clear the undo/redo stack */
524 undo_reset();
525
526 /* Commit */
527 db_end_transaction(0);
528
529 /* Autosync and do a push? */
530 if( do_autosync() ){
531 g.argc=2;
532 g.argv[1]="push";
533 push_cmd();
534 }
535 }
536

Keyboard Shortcuts

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