Fossil SCM

Autosync is now working. Added autosync to tag add, tag branch and branch create.

jnc 2007-09-25 07:19 trunk
Commit e4517465f35f02639c67c92a96462154cd99b86c
2 files changed +7 +7
--- src/branch.c
+++ src/branch.c
@@ -156,10 +156,17 @@
156156
/* Clear the undo/redo stack */
157157
undo_reset();
158158
159159
/* Commit */
160160
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
+ }
161168
}
162169
163170
/*
164171
** COMMAND: branch
165172
**
166173
--- 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 @@
273273
blob_appendf(&ctrl, "Z %b\n", &cksum);
274274
db_begin_transaction();
275275
nrid = content_put(&ctrl, 0, 0);
276276
manifest_crosslink(nrid, &ctrl);
277277
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
+ }
278285
}
279286
280287
/*
281288
** COMMAND: tag
282289
** Usage: %fossil tag SUBCOMMAND ...
283290
--- 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

Keyboard Shortcuts

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