diff mercurial/httprepo.py @ 5336:24de027551c1

Merge with crew-stable
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Mon, 24 Sep 2007 19:14:18 -0300
parents 65dc707606ed 6e6a00a7bf75
children b3afa6725082
line wrap: on
line diff
--- a/mercurial/httprepo.py	Mon Sep 24 12:42:25 2007 -0500
+++ b/mercurial/httprepo.py	Mon Sep 24 19:14:18 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: