# HG changeset patch # User Alexis S. L. Carvalho # Date 1190671211 10800 # Node ID 6e6a00a7bf75cc3f178080e5153ab6827c7da7ef # Parent b0bfe087ad8a0121c967f1d440a810edfd4e6cdb Push over HTTP: really tell the user the size of the bundle diff --git a/mercurial/httprepo.py b/mercurial/httprepo.py --- a/mercurial/httprepo.py +++ b/mercurial/httprepo.py @@ -298,8 +298,7 @@ class httprepository(remoterepository): cu = "%s%s" % (self._url, qs) try: if data: - self.ui.debug(_("sending %s bytes\n") % - headers.get('content-length', 'X')) + self.ui.debug(_("sending %s bytes\n") % len(data)) resp = urllib2.urlopen(request(cu, data, headers)) except urllib2.HTTPError, inst: if inst.code == 401: