push: restore contents of HG_URL for hooks (issue4268) stable
authorMatt Mackall <mpm@selenic.com>
Wed, 18 Jun 2014 19:46:18 -0500
branchstable
changeset 21761 b2dc026a9bd2
parent 21760 a7f5967ff644
child 21764 cd3c79392056
child 21815 a4b67bf1f0a5
push: restore contents of HG_URL for hooks (issue4268)
mercurial/exchange.py
--- a/mercurial/exchange.py	Wed Jun 18 13:47:14 2014 -0500
+++ b/mercurial/exchange.py	Wed Jun 18 19:46:18 2014 -0500
@@ -286,7 +286,7 @@
         # ssh: return remote's addchangegroup()
         # http: return remote's addchangegroup() or 0 for error
         pushop.ret = pushop.remote.unbundle(cg, remoteheads,
-                                            'push')
+                                            pushop.repo.url())
     else:
         # we return an integer indicating remote head count
         # change