Mercurial > public > mercurial-scm > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
5328:8d00788ca578 | 5336:24de027551c1 |
---|---|
296 q.update(args) | 296 q.update(args) |
297 qs = '?%s' % urllib.urlencode(q) | 297 qs = '?%s' % urllib.urlencode(q) |
298 cu = "%s%s" % (self._url, qs) | 298 cu = "%s%s" % (self._url, qs) |
299 try: | 299 try: |
300 if data: | 300 if data: |
301 self.ui.debug(_("sending %s bytes\n") % | 301 self.ui.debug(_("sending %s bytes\n") % len(data)) |
302 headers.get('content-length', 'X')) | |
303 resp = urllib2.urlopen(request(cu, data, headers)) | 302 resp = urllib2.urlopen(request(cu, data, headers)) |
304 except urllib2.HTTPError, inst: | 303 except urllib2.HTTPError, inst: |
305 if inst.code == 401: | 304 if inst.code == 401: |
306 raise util.Abort(_('authorization failed')) | 305 raise util.Abort(_('authorization failed')) |
307 raise | 306 raise |