Differences From:
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]
To:
File
src/sync.c
part of check-in
[9346f2290c]
- Added the "all" command for things like "fossil all sync". I am not sure
"all" is quite the right name for this command, so I may yet change it.
by
drh on
2008-10-17 00:20:21.
[view]
@@ -73,8 +73,9 @@
** most recently synced URL. Remember the current URL for next time.
*/
void process_sync_args(void){
const char *zUrl = 0;
+ int urlOptional = find_option("autourl",0,0)!=0;
url_proxy_options();
db_find_and_open_repository(1);
if( g.argc==2 ){
zUrl = db_get("last-sync-url", 0);
@@ -81,8 +82,9 @@
}else if( g.argc==3 ){
zUrl = g.argv[2];
}
if( zUrl==0 ){
+ if( urlOptional ) exit(0);
usage("URL");
}
url_parse(zUrl);
if( g.urlIsFile ){