changeset 5333:6e6a00a7bf75

Push over HTTP: really tell the user the size of the bundle
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Mon, 24 Sep 2007 19:00:11 -0300
parents b0bfe087ad8a
children 448eb46d4d84
files mercurial/httprepo.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/httprepo.py	Mon Sep 24 19:00:11 2007 -0300
+++ b/mercurial/httprepo.py	Mon Sep 24 19:00:11 2007 -0300
@@ -298,8 +298,7 @@
         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: