Show More
@@ -825,7 +825,6 b' class hgweb(object):' | |||
|
825 | 825 | req.write(resp) |
|
826 | 826 | |
|
827 | 827 | def do_between(self, req): |
|
828 | nodes = [] | |
|
829 | 828 | if req.form.has_key('pairs'): |
|
830 | 829 | pairs = [map(bin, p.split("-")) |
|
831 | 830 | for p in req.form['pairs'][0].split(" ")] |
@@ -131,7 +131,7 b' class httprepository(remoterepository):' | |||
|
131 | 131 | self.ui = ui |
|
132 | 132 | |
|
133 | 133 | proxyurl = ui.config("http_proxy", "host") or os.getenv('http_proxy') |
|
134 | proxyauthinfo = None | |
|
134 | # XXX proxyauthinfo = None | |
|
135 | 135 | handler = httphandler() |
|
136 | 136 | |
|
137 | 137 | if proxyurl: |
@@ -288,14 +288,13 b' class httprepository(remoterepository):' | |||
|
288 | 288 | def changegroup(self, nodes, kind): |
|
289 | 289 | n = " ".join(map(hex, nodes)) |
|
290 | 290 | f = self.do_cmd("changegroup", roots=n) |
|
291 | bytes = 0 | |
|
292 | 291 | |
|
293 | 292 | def zgenerator(f): |
|
294 | 293 | zd = zlib.decompressobj() |
|
295 | 294 | try: |
|
296 | 295 | for chnk in f: |
|
297 | 296 | yield zd.decompress(chnk) |
|
298 |
except httplib.HTTPException |
|
|
297 | except httplib.HTTPException: | |
|
299 | 298 | raise IOError(None, _('connection ended unexpectedly')) |
|
300 | 299 | yield zd.flush() |
|
301 | 300 |
General Comments 0
You need to be logged in to leave comments.
Login now