Mercurial > hg > mercurial-source
changeset 526:55af04e26bad
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-----
author | mpm@selenic.com |
---|---|
date | Wed, 29 Jun 2005 14:15:16 -0800 |
parents | 337163e4d4b9 |
children | 58790c83ce52 |
files | mercurial/commands.py |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -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