Differences From:
File
src/sync.c
part of check-in
[8dbee6731d]
- The push, pull, and sync commands remember the last server and reuse it
if the URL argument is omitted. Sync via network only now.
by
drh on
2007-07-31 01:34:45.
[view]
To:
File
src/sync.c
part of check-in
[ce825ac954]
- When syncing without a URL, print the name of the server, taking care
to omit any userid and password.
by
drh on
2007-07-31 20:36:20.
[view]
@@ -49,8 +49,15 @@
fossil_fatal("network sync only");
}
db_set("last-sync-url", zUrl);
user_select();
+ if( g.argc==2 ){
+ if( g.urlPort!=80 ){
+ printf("Server: http://%s:%d%s\n", g.urlName, g.urlPort, g.urlPath);
+ }else{
+ printf("Server: http://%s%s\n", g.urlName, g.urlPath);
+ }
+ }
}
/*
** COMMAND: pull