diff mercurial/httprepo.py @ 13115:bda5f35fbf67

httpsendfile: record progress information during read() This allows us to provide deterministic progress information during transfer of bundle data over HTTP. This is required because we currently buffer the bundle data to local disk prior to transfer since wsgiref lacks chunked transfer-coding support.
author Augie Fackler <durin42@gmail.com>
date Fri, 10 Dec 2010 13:31:06 -0600
parents ea68947ad0ce
children 970150ddaaf8 4e958f2a193f
line wrap: on
line diff
--- a/mercurial/httprepo.py	Tue Dec 07 15:50:28 2010 +0100
+++ b/mercurial/httprepo.py	Fri Dec 10 13:31:06 2010 -0600
@@ -160,7 +160,7 @@
                     break
 
         tempname = changegroup.writebundle(cg, None, type)
-        fp = url.httpsendfile(tempname, "rb")
+        fp = url.httpsendfile(self.ui, tempname, "rb")
         headers = {'Content-Type': 'application/mercurial-0.1'}
 
         try: