sapling/mercurial
Gregory Szorc 53550ebc63 sslutil: store and use hostname and ui in socket instance
Currently, we pass a hostname and ui to sslutil.wrap_socket()
then create a separate sslutil.validator instance also from
a hostname and ui. There is a 1:1 mapping between a wrapped
socket and a validator instance. This commit lays the groundwork
for making the validation function generic by storing the
hostname and ui instance in the state dict attached to the
socket instance and then using these variables in the
validator function.

Since the arguments to sslutil.validator.__init__ are no longer
used, we make them optional and make __init__ a no-op.
2016-05-15 11:32:11 -07:00
..
default.d mergetools.rc: find OSX FileMerge in the new location inside Xcode 4.3 2015-10-16 11:37:34 +02:00
help merge with stable 2016-05-17 11:28:46 -05:00
hgweb py3: convert to next() function 2016-05-16 21:30:53 +00:00
httpclient httpclient: update to upstream revision 2995635573d2 2016-05-09 21:13:50 -04:00
pure pure: write a really lazy version of pure indexObject 2016-04-24 14:21:38 +03:00
templates log: fix status template to list copy source per dest (issue5155) 2016-03-24 22:55:56 +09:00
__init__.py mercurial: use pure Python module policy on Python 3 2016-03-12 13:19:19 -08:00
ancestor.py py3: convert to next() function 2016-05-16 21:30:53 +00:00
archival.py pycompat: switch to util.stringio for py3 compat 2016-04-10 20:55:37 +00:00
base85.c base85: fix comparison of an int and a long 2015-08-21 14:29:42 -04:00
bdiff.c bdiff: further restrain potential quadratic performance 2016-04-22 13:38:02 -05:00
bookmarks.py bookmarks: properly invalidate volatile sets when writing bookmarks 2016-05-04 22:44:30 -04:00
branchmap.py cache: rebuild branch cache from scratch when inconsistencies are detected 2016-03-13 02:06:23 +01:00
bundle2.py pycompat: switch to util.urlreq/util.urlerr for py3 compat 2016-04-06 23:22:12 +00:00
bundlerepo.py bundle: warn when update to revision existing only in a bundle (issue5004) 2016-03-23 08:55:22 +01:00
byterange.py pycompat: switch to util.urlreq/util.urlerr for py3 compat 2016-04-06 23:22:12 +00:00
changegroup.py bundle: move writebundle() from changegroup.py to bundle2.py (API) 2016-03-28 14:41:29 -07:00
changelog.py changelog: avoid slicing raw data until needed 2016-03-06 15:40:20 -08:00
cmdutil.py py3: convert to next() function 2016-05-16 21:30:53 +00:00
commands.py debuginstall: add mercurial version 2016-05-10 22:45:45 +00:00
commandserver.py cmdserver: write early exception to 'e' channel in 'unix' mode 2016-03-12 22:03:30 +09:00
config.py config: add hasconfig method and supporting plumbing 2016-01-07 19:45:03 -08:00
context.py annotate: optimize line counting 2016-05-18 16:37:32 -05:00
copies.py py3: convert to next() function 2016-05-16 21:30:53 +00:00
crecord.py crecord: call prevsibling() and nextsibling() directly 2016-05-06 19:52:21 +08:00
dagparser.py error: get Abort from 'error' instead of 'util' 2015-10-08 12:55:45 -07:00
dagutil.py dagutil: use absolute_import 2015-08-08 19:04:09 -07:00
demandimport.py demandimport: add _imp to ignore list 2016-02-25 22:35:11 -08:00
destutil.py destutil: add the ability to specify a search space for rebase destination 2016-04-30 18:41:08 +02:00
diffhelpers.c diffhelpers: fix botched return statement from e48d70075d8a 2015-01-28 13:34:20 -05:00
dirs.c dirs._addpath: reinstate use of Py_CLEAR 2015-04-07 20:43:04 -07:00
dirstate.py dirstate: add prefix and suffix arguments to backup 2016-05-13 13:28:09 -07:00
discovery.py bookmarks: don't allow pushing new head for existing mark with -B (issue4400) 2015-10-21 16:21:27 -05:00
dispatch.py dispatch: always load extensions before running shell aliases (issue5230) 2016-05-07 14:12:23 +01:00
dummycert.pem ssl: on OS X, use a dummy cert to trick Python/OpenSSL to use system CA certs 2014-09-26 02:19:48 +02:00
encoding.py encoding: use range() instead of xrange() 2016-03-11 21:27:26 -08:00
error.py error: make InterventionRequired take a hint 2015-12-23 08:52:52 +00:00
exchange.py bundle2: properly request phases during getbundle 2016-05-05 20:57:38 +09:00
exewrapper.c exewrapper: add .dll to LoadLibrary() argument 2016-04-27 09:23:39 -07:00
extensions.py hgcia: remove hgcia (BC) 2016-05-12 01:03:19 +01:00
fancyopts.py error: get Abort from 'error' instead of 'util' 2015-10-08 12:55:45 -07:00
filelog.py filelog: use absolute_import 2015-08-08 19:11:42 -07:00
filemerge.py templater: factor out function that creates templater from string template 2016-04-10 17:23:09 +09:00
fileset.py fileset: fix copy/paste in eol() error message 2016-02-18 22:32:18 -05:00
formatter.py templater: factor out function that creates templater from string template 2016-04-10 17:23:09 +09:00
graphmod.py graphmod: update edgemap in-place 2016-05-16 16:41:26 +01:00
hbisect.py with: use context manager in bisect save_state 2016-01-15 13:14:49 -08:00
help.py help: report source of aliases 2016-04-08 18:35:49 +00:00
hg.py verify: don't init subrepo when missing one is referenced (issue5128) (API) 2016-04-27 22:45:52 -04:00
hook.py hook: split config reading further 2016-04-14 17:03:49 -07:00
httpconnection.py pycompat: switch to util.urlreq/util.urlerr for py3 compat 2016-04-06 23:22:12 +00:00
httppeer.py pycompat: switch to util.urlreq/util.urlerr for py3 compat 2016-04-06 23:22:12 +00:00
i18n.py py3: handle ugettext + unicode in i18n 2016-03-29 17:22:08 +00:00
keepalive.py pycompat: switch to util.urlreq/util.urlerr for py3 compat 2016-04-06 23:22:12 +00:00
localrepo.py localrepo: use dirstate restorebackup instead of copying dirstate manually 2016-05-13 13:30:08 -07:00
lock.py lock: clear postrelease hooks list after usage 2016-04-16 09:00:15 -07:00
lsprof.py lsprof: use print function 2016-01-02 11:40:53 -08:00
lsprofcalltree.py lsprofcalltree: use print function 2016-01-02 11:45:29 -08:00
mail.py py3: use setattr() to assign new class attribute 2016-05-17 05:32:36 +05:30
manifest.c lazymanifest: check more return values in filtercopy 2015-12-31 13:31:42 -05:00
manifest.py manifest: improve filesnotin performance by using lazymanifest diff 2016-05-02 15:22:16 -07:00
match.py spelling: trivial spell checking 2015-10-17 00:58:46 +02:00
mdiff.py mdiff: don't emit a diff header for empty trivial deltas 2016-01-11 22:00:07 -05:00
merge.py py3: convert to next() function 2016-05-16 21:30:53 +00:00
minirst.py help: search section of help topic by translated section name correctly 2016-05-13 07:19:59 +09:00
mpatch.c mpatch: unify mpatchError (issue5182) 2016-03-31 02:05:28 +00:00
namespaces.py namespaces: fix name/node confusion 2016-03-16 23:12:43 +00:00
node.py node: use byte literals to construct nullid and wdirid 2016-03-12 14:04:57 -08:00
obsolete.py obsstore: move delete function from obsstore class to repair module 2016-04-12 04:06:50 -07:00
osutil.c osutil: stop using strcpy 2016-03-19 20:02:19 -04:00
parser.py parser: shorten prefix of alias parsing errors 2016-04-17 12:31:06 +09:00
parsers.c parsers: fix istat macro to work with single line if statement 2016-04-05 10:43:43 -04:00
patch.py patch: show lower-ed translated message correctly 2016-05-13 07:19:59 +09:00
pathencode.c pathencode: check result of .digest() method in sha1hash 2015-08-18 16:32:41 -04:00
pathutil.py error: get Abort from 'error' instead of 'util' 2015-10-08 12:55:45 -07:00
peer.py py3: convert to next() function 2016-05-16 21:30:53 +00:00
phases.py with: use context manager for transaction in pushphase 2016-01-15 13:14:49 -08:00
posix.py posix: fix test-permissions regression 2015-11-09 15:53:11 -06:00
progress.py progress: stop excessive clearing (issue4801) 2016-05-06 17:53:06 -05:00
pushkey.py pushkey: use absolute_import 2015-08-08 19:57:27 -07:00
pvec.py pvec: use absolute_import 2015-12-21 21:32:58 -08:00
py3kcompat.py py3compat: use absolute_import 2015-12-21 21:31:57 -08:00
pycompat.py pycompat: add util.urlerr util.urlreq classes for py3 compat 2016-04-07 00:05:48 +00:00
registrar.py registrar: add templatefunc to mark a function as template function (API) 2016-03-30 02:10:44 +09:00
repair.py obsstore: move delete function from obsstore class to repair module 2016-04-12 04:06:50 -07:00
repoview.py repoview: ignore unwritable hidden cache 2016-04-28 16:26:18 -05:00
revlog.py revlog: fix bad indentation (replace tab by space) 2015-12-18 20:54:41 -08:00
revset.py py3: convert to next() function 2016-05-16 21:30:53 +00:00
scmposix.py scmposix: use absolute_import 2015-12-21 21:24:49 -08:00
scmutil.py vfs: make rename avoid ambiguity of file stat if needed 2016-05-19 00:20:38 +09:00
scmwindows.py windows: read all global config files, not just the first (issue4491) (BC) 2015-10-12 20:13:12 +02:00
setdiscovery.py setdiscovery: use iterbatch interface instead of batch 2016-03-01 17:44:41 -05:00
similar.py similar: specify unit for ui.progress when operating on files 2016-03-11 22:29:20 +08:00
simplemerge.py simplemerge: move conflict warning message to filemerge 2015-10-09 13:54:52 -07:00
sshpeer.py wireproto: make iterbatcher behave streamily over http(s) 2016-03-01 18:41:43 -05:00
sshserver.py error: get Abort from 'error' instead of 'util' 2015-10-08 12:55:45 -07:00
sslutil.py sslutil: store and use hostname and ui in socket instance 2016-05-15 11:32:11 -07:00
statichttprepo.py pycompat: switch to util.urlreq/util.urlerr for py3 compat 2016-04-06 23:22:12 +00:00
store.py store: treat range as a generator instead of a list for py3 compat 2016-04-10 07:28:26 +00:00
streamclone.py streamclone: fix error when store files grow while stream cloning 2016-03-13 02:29:11 +01:00
strutil.py strutil: use absolute_import 2015-08-08 20:01:40 -07:00
subrepo.py verify: don't init subrepo when missing one is referenced (issue5128) (API) 2016-04-27 22:45:52 -04:00
tagmerge.py tagmerge: use absolute_import 2015-08-08 20:10:46 -07:00
tags.py py3: convert to next() function 2016-05-16 21:30:53 +00:00
templatefilters.py pycompat: switch to util.urlreq/util.urlerr for py3 compat 2016-04-06 23:22:12 +00:00
templatekw.py templatekw: use templatekeyword to mark a function as template keyword 2016-03-13 05:17:06 +09:00
templater.py templater: add separate() template function 2016-05-03 09:49:54 -07:00
transaction.py transaction: clear callback instances after usage 2016-04-16 09:02:37 -07:00
treediscovery.py error: get Abort from 'error' instead of 'util' 2015-10-08 12:55:45 -07:00
ui.py ui: add an instance flag to hold --insecure bit 2016-05-05 00:33:38 -07:00
unionrepo.py unionrepo: properly handle hidden linkrev in revlog (issue5070) 2016-02-22 23:36:04 +01:00
url.py pycompat: switch to util.urlreq/util.urlerr for py3 compat 2016-04-06 23:22:12 +00:00
util.h util: fix the check for non-C99 compilers (issue4605) 2015-04-20 22:21:57 -05:00
util.py util: make copyfile avoid ambiguity of file stat if needed 2016-05-19 00:20:38 +09:00
verify.py verify: specify unit for ui.progress when checking files 2016-03-11 20:18:41 +08:00
win32.py win32: use absolute_import 2015-08-08 18:52:59 -07:00
windows.py windows: insert file positioning call between reads and writes 2015-09-27 18:46:53 -07:00
wireproto.py py3: convert to next() function 2016-05-16 21:30:53 +00:00
worker.py error: get Abort from 'error' instead of 'util' 2015-10-08 12:55:45 -07:00