mercurial/hgweb/protocol.py
changeset 8846 b30775386d40
parent 8845 296767acbb55
child 9198 061eeb602354
--- a/mercurial/hgweb/protocol.py	Sun Jun 07 20:15:37 2009 +0200
+++ b/mercurial/hgweb/protocol.py	Sun Jun 07 20:31:38 2009 +0200
@@ -162,9 +162,10 @@
                 sys.stderr = sys.stdout = cStringIO.StringIO()
 
                 try:
-                    url = 'remote:%s:%s' % (proto,
-                                            urllib.quote(
-                                              req.env.get('REMOTE_HOST', '')))
+                    url = 'remote:%s:%s:%s' % (
+                          proto,
+                          urllib.quote(req.env.get('REMOTE_HOST', '')),
+                          urllib.quote(req.env.get('REMOTE_USER', '')))
                     try:
                         ret = repo.addchangegroup(gen, 'serve', url)
                     except util.Abort, inst: