Fossil

Diff
Login

Diff

Differences From Artifact [56f301d5f5]:

To Artifact [f0d8150cef]:


80
81
82
83
84
85
86
87

88
89
90

91
92
93
94
95
96
97
80
81
82
83
84
85
86

87
88
89

90
91
92
93
94
95
96
97







-
+


-
+







/*
** This routine will try a number of times to perform autosync with a
** .5 second sleep between attempts; returning the last autosync status.
*/
int autosync_loop(int flags, int nTries){
  int n = 0;
  int rc = 0;
  while( (n==0 || n < nTries) && (rc = autosync(flags) )){
  while( (n==0 || n < nTries) && (rc = autosync(flags)) ){
    if( rc ) fossil_warning("Autosync failed%s",
      ++n < nTries ? ", making another attempt." : ".");
    sqlite3_sleep(500);
    if( n < nTries ) sqlite3_sleep(500);
  }
  return rc;
}

/*
** This routine processes the command-line argument for push, pull,
** and sync.  If a command-line argument is given, that is the URL