Mercurial > public > mercurial-scm > hg
comparison mercurial/httprepo.py @ 6313:c5580db9c3aa
remoterepo: no longer needed
All users already use repo.local() to test for local, which is false
in the repository base class. statichttprepository never derived from
this class anyway.
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 20 Mar 2008 11:12:35 -0500 |
parents | 9cd6292abfdf |
children | dbb00e91c327 |
comparison
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) |