show connect message on push
authormpm@selenic.com
Wed, 29 Jun 2005 14:15:16 -0800
changeset 526 55af04e26bad
parent 525 337163e4d4b9
child 527 58790c83ce52
show connect message on push -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 show connect message on push manifest hash: 3edbff798a71719c91890b9ab5fda5c2bd64f256 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCwx10ywK+sNU5EO8RAv0uAJsGMalwZ2aEElzZ8io5zlM/DjwqJACglVLb 7KXzzHdXfKGXOr00gUV4mvc= =sfeK -----END PGP SIGNATURE-----
mercurial/commands.py
--- a/mercurial/commands.py	Wed Jun 29 14:10:17 2005 -0800
+++ b/mercurial/commands.py	Wed Jun 29 14:15:16 2005 -0800
@@ -575,13 +575,13 @@
         return 1
 
     user, host, port, path = map(m.group, (2, 3, 5, 7))
-    host = user and ("%s@%s" % (user, host)) or host
+    uhost = user and ("%s@%s" % (user, host)) or host
     port = port and (" -p %s") % port or ""
     path = path or ""
 
     sport = random.randrange(30000, 60000)
     cmd = "ssh %s%s -R %d:localhost:%d 'cd %s; hg pull http://localhost:%d/'"
-    cmd = cmd % (host, port, sport+1, sport, path, sport+1)
+    cmd = cmd % (uhost, port, sport+1, sport, path, sport+1)
 
     child = os.fork()
     if not child:
@@ -589,6 +589,7 @@
         sys.stderr = sys.stdout
         hgweb.server(repo.root, "pull", "", "localhost", sport)
     else:
+        ui.status("connecting to %s\n" % host)
         r = os.system(cmd)
         os.kill(child, signal.SIGTERM)
         return r