comparison mercurial/httprepo.py @ 4029:9210fba03d16

merge with -stable
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Mon, 15 Jan 2007 18:23:21 +0100
parents d8b3edf88af0 a195f11ed1a2
children 9dc64c8414ca
comparison
equal deleted inserted replaced
4028:540d1059c802 4029:9210fba03d16
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 * 9 from node import *
10 from remoterepo import * 10 from remoterepo import *
11 from i18n import gettext as _ 11 from i18n import _
12 from demandload import * 12 import hg, os, urllib, urllib2, urlparse, zlib, util, httplib
13 demandload(globals(), "hg os urllib urllib2 urlparse zlib util httplib") 13 import errno, keepalive, tempfile, socket, changegroup
14 demandload(globals(), "errno keepalive tempfile socket changegroup")
15 14
16 class passwordmgr(urllib2.HTTPPasswordMgrWithDefaultRealm): 15 class passwordmgr(urllib2.HTTPPasswordMgrWithDefaultRealm):
17 def __init__(self, ui): 16 def __init__(self, ui):
18 urllib2.HTTPPasswordMgrWithDefaultRealm.__init__(self) 17 urllib2.HTTPPasswordMgrWithDefaultRealm.__init__(self)
19 self.ui = ui 18 self.ui = ui