Fossil SCM
Autosync is now working. Added autosync to tag add, tag branch and branch create.
Commit
e4517465f35f02639c67c92a96462154cd99b86c
Parent
6847e9b22a52ae2…
2 files changed
+7
+7
+7
| --- src/branch.c | ||
| +++ src/branch.c | ||
| @@ -156,10 +156,17 @@ | ||
| 156 | 156 | /* Clear the undo/redo stack */ |
| 157 | 157 | undo_reset(); |
| 158 | 158 | |
| 159 | 159 | /* Commit */ |
| 160 | 160 | db_end_transaction(0); |
| 161 | + | |
| 162 | + /* Autosync and do a push? */ | |
| 163 | + if( do_autosync() ){ | |
| 164 | + g.argc=2; | |
| 165 | + g.argv[1]="push"; | |
| 166 | + push_cmd(); | |
| 167 | + } | |
| 161 | 168 | } |
| 162 | 169 | |
| 163 | 170 | /* |
| 164 | 171 | ** COMMAND: branch |
| 165 | 172 | ** |
| 166 | 173 |
| --- src/branch.c | |
| +++ src/branch.c | |
| @@ -156,10 +156,17 @@ | |
| 156 | /* Clear the undo/redo stack */ |
| 157 | undo_reset(); |
| 158 | |
| 159 | /* Commit */ |
| 160 | db_end_transaction(0); |
| 161 | } |
| 162 | |
| 163 | /* |
| 164 | ** COMMAND: branch |
| 165 | ** |
| 166 |
| --- src/branch.c | |
| +++ src/branch.c | |
| @@ -156,10 +156,17 @@ | |
| 156 | /* Clear the undo/redo stack */ |
| 157 | undo_reset(); |
| 158 | |
| 159 | /* Commit */ |
| 160 | db_end_transaction(0); |
| 161 | |
| 162 | /* Autosync and do a push? */ |
| 163 | if( do_autosync() ){ |
| 164 | g.argc=2; |
| 165 | g.argv[1]="push"; |
| 166 | push_cmd(); |
| 167 | } |
| 168 | } |
| 169 | |
| 170 | /* |
| 171 | ** COMMAND: branch |
| 172 | ** |
| 173 |
+7
| --- src/tag.c | ||
| +++ src/tag.c | ||
| @@ -273,10 +273,17 @@ | ||
| 273 | 273 | blob_appendf(&ctrl, "Z %b\n", &cksum); |
| 274 | 274 | db_begin_transaction(); |
| 275 | 275 | nrid = content_put(&ctrl, 0, 0); |
| 276 | 276 | manifest_crosslink(nrid, &ctrl); |
| 277 | 277 | db_end_transaction(0); |
| 278 | + | |
| 279 | + /* Autosync and do a push? */ | |
| 280 | + if( do_autosync() ){ | |
| 281 | + g.argc=2; | |
| 282 | + g.argv[1]="push"; | |
| 283 | + push_cmd(); | |
| 284 | + } | |
| 278 | 285 | } |
| 279 | 286 | |
| 280 | 287 | /* |
| 281 | 288 | ** COMMAND: tag |
| 282 | 289 | ** Usage: %fossil tag SUBCOMMAND ... |
| 283 | 290 |
| --- src/tag.c | |
| +++ src/tag.c | |
| @@ -273,10 +273,17 @@ | |
| 273 | blob_appendf(&ctrl, "Z %b\n", &cksum); |
| 274 | db_begin_transaction(); |
| 275 | nrid = content_put(&ctrl, 0, 0); |
| 276 | manifest_crosslink(nrid, &ctrl); |
| 277 | db_end_transaction(0); |
| 278 | } |
| 279 | |
| 280 | /* |
| 281 | ** COMMAND: tag |
| 282 | ** Usage: %fossil tag SUBCOMMAND ... |
| 283 |
| --- src/tag.c | |
| +++ src/tag.c | |
| @@ -273,10 +273,17 @@ | |
| 273 | blob_appendf(&ctrl, "Z %b\n", &cksum); |
| 274 | db_begin_transaction(); |
| 275 | nrid = content_put(&ctrl, 0, 0); |
| 276 | manifest_crosslink(nrid, &ctrl); |
| 277 | db_end_transaction(0); |
| 278 | |
| 279 | /* Autosync and do a push? */ |
| 280 | if( do_autosync() ){ |
| 281 | g.argc=2; |
| 282 | g.argv[1]="push"; |
| 283 | push_cmd(); |
| 284 | } |
| 285 | } |
| 286 | |
| 287 | /* |
| 288 | ** COMMAND: tag |
| 289 | ** Usage: %fossil tag SUBCOMMAND ... |
| 290 |