Differences From:
File
src/update.c
part of check-in
[b773dda29b]
- Autosync config parameter added (autosync). Setting this to 1, y or Y (or yes, Yes, yes, YES, etc...) will cause autosync's to happen during certian operations. Right now, the only operation paying attention to this is update. If autosync and you do fossil update, a pull takes place first, then an update. Others will follow (commit for one).
by
jnc on
2007-09-25 06:56:54.
[view]
To:
File
src/update.c
part of check-in
[fff234b77c]
- Updates to the autosync logic. Add the "setting" command.
by
drh on
2007-09-25 20:23:52.
[view]
@@ -77,13 +77,10 @@
fossil_fatal("not a version: %s", g.argv[2]);
}
}
- if( do_autosync() ){
- g.argc=2;
- g.argv[1]="pull";
- pull_cmd();
- }
+ /* Do an autosync pull prior to the update, if autosync is on */
+ autosync(1);
if( tid==0 ){
compute_leaves(vid);
if( !latestFlag && db_int(0, "SELECT count(*) FROM leaves")>1 ){