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 :-)
Commit
0431f14edfbc452aea7f3981e03cfb306121551e
Parent
b773dda29bce549…
1 file changed
+8
-1
+8
-1
| --- src/checkin.c | ||
| +++ src/checkin.c | ||
| @@ -522,7 +522,14 @@ | ||
| 522 | 522 | |
| 523 | 523 | /* Clear the undo/redo stack */ |
| 524 | 524 | undo_reset(); |
| 525 | 525 | |
| 526 | 526 | /* 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 | + } | |
| 528 | 535 | } |
| 529 | 536 |
| --- 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 |