mercurial/httprepo.py
changeset 6313 c5580db9c3aa
parent 6294 9cd6292abfdf
child 6787 dbb00e91c327
equal deleted inserted replaced
6312:08800489257e 6313:c5580db9c3aa
     5 #
     5 #
     6 # This software may be used and distributed according to the terms
     6 # This software may be used and distributed according to the terms
     7 # of the GNU General Public License, incorporated herein by reference.
     7 # of the GNU General Public License, incorporated herein by reference.
     8 
     8 
     9 from node import bin, hex
     9 from node import bin, hex
    10 from remoterepo import remoterepository
       
    11 from i18n import _
    10 from i18n import _
    12 import repo, os, urllib, urllib2, urlparse, zlib, util, httplib
    11 import repo, os, urllib, urllib2, urlparse, zlib, util, httplib
    13 import errno, keepalive, socket, changegroup
    12 import errno, keepalive, socket, changegroup
    14 
    13 
    15 class passwordmgr(urllib2.HTTPPasswordMgrWithDefaultRealm):
    14 class passwordmgr(urllib2.HTTPPasswordMgrWithDefaultRealm):
   179             pass
   178             pass
   180         elif c not in _safeset:
   179         elif c not in _safeset:
   181             l[i] = '%%%02X' % ord(c)
   180             l[i] = '%%%02X' % ord(c)
   182     return ''.join(l)
   181     return ''.join(l)
   183 
   182 
   184 class httprepository(remoterepository):
   183 class httprepository(repo.repository):
   185     def __init__(self, ui, path):
   184     def __init__(self, ui, path):
   186         self.path = path
   185         self.path = path
   187         self.caps = None
   186         self.caps = None
   188         self.handler = None
   187         self.handler = None
   189         scheme, netloc, urlpath, query, frag = urlparse.urlsplit(path)
   188         scheme, netloc, urlpath, query, frag = urlparse.urlsplit(path)