Check-in [ce825ac954]
Not logged in
Overview

SHA1 Hash:ce825ac9546eb542ee1fc33c04b601eda1941638
Date: 2007-07-31 20:36:20
User: drh
Comment:When syncing without a URL, print the name of the server, taking care to omit any userid and password.
Timelines: ancestors | descendants | both | trunk
Other Links: files | ZIP archive | manifest

Tags And Properties
Changes
[hide diffs]

Modified src/sync.c from [53257d834f] to [c79d53c017].

@@ -48,10 +48,17 @@
   if( g.urlIsFile ){
     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
 **