Diff
Not logged in

Differences From:

File src/sync.c part of check-in [9ba6e4287b] - Add the --nosync option to temporarily disable autosync. Useful when off network. by drh on 2008-05-10 17:09:46. [view]

To:

File src/sync.c part of check-in [28e56282c9] - Finish implementing the configuration command by adding method implementations for "import", "reset", and "pull". by drh on 2008-05-23 19:21:03. [view]

@@ -62,9 +62,9 @@
   }else{
     printf("Autosync:  http://%s%s\n", g.urlName, g.urlPath);
   }
   url_enable_proxy("via proxy: ");
-  client_sync((flags & AUTOSYNC_PUSH)!=0, 1, 0);
+  client_sync((flags & AUTOSYNC_PUSH)!=0, 1, 0, 0);
 }
 
 /*
 ** This routine processes the command-line argument for push, pull,
@@ -71,9 +71,9 @@
 ** and sync.  If a command-line argument is given, that is the URL
 ** of a server to sync against.  If no argument is given, use the
 ** most recently synced URL.  Remember the current URL for next time.
 */
-static void process_sync_args(void){
+void process_sync_args(void){
   const char *zUrl = 0;
   url_proxy_options();
   db_find_and_open_repository(1);
   if( g.argc==2 ){
@@ -123,9 +123,9 @@
 ** 80.
 */
 void pull_cmd(void){
   process_sync_args();
-  client_sync(0,1,0);
+  client_sync(0,1,0,0);
 }
 
 /*
 ** COMMAND: push
@@ -136,9 +136,9 @@
 ** See the "pull" command for additional information.
 */
 void push_cmd(void){
   process_sync_args();
-  client_sync(1,0,0);
+  client_sync(1,0,0,0);
 }
 
 
 /*
@@ -151,6 +151,6 @@
 ** See the "pull" command for additional information.
 */
 void sync_cmd(void){
   process_sync_args();
-  client_sync(1,1,0);
+  client_sync(1,1,0,0);
 }