##// END OF EJS Templates
sslutil: synchronize hostname matching logic with CPython...
sslutil: synchronize hostname matching logic with CPython sslutil contains its own hostname matching logic. CPython has code for the same intent. However, it is only available to Python 2.7.9+ (or distributions that have backported 2.7.9's ssl module improvements). This patch effectively imports CPython's hostname matching code from its ssl.py into sslutil.py. The hostname matching code itself is pretty similar. However, the DNS name matching code is much more robust and spec conformant. As the test changes show, this changes some behavior around wildcard handling and IDNA matching. The new behavior allows wildcards in the middle of words (e.g. 'f*.com' matches 'foo.com') This is spec compliant according to RFC 6125 Section 6.5.3 item 3. There is one test where the matcher is more strict. Before, '*.a.com' matched '.a.com'. Now it doesn't match. Strictly speaking this is a security vulnerability.

File last commit:

r28615:a6573503 default
r29452:26a5d605 3.8.4 stable
Show More
test-debugextensions.t
83 lines | 1.5 KiB | text/troff | Tads3Lexer
/ tests / test-debugextensions.t
liscju
mercurial: add debugextensions command (issue4676)...
r26351 $ hg debugextensions
$ debugpath=`pwd`/extwithoutinfos.py
$ cat > extwithoutinfos.py <<EOF
> EOF
$ cat >> $HGRCPATH <<EOF
> [extensions]
> color=
> histedit=
> patchbomb=
> rebase=
> mq=
> ext1 = $debugpath
> EOF
$ hg debugextensions
color
ext1 (untested!)
histedit
mq
patchbomb
rebase
$ hg debugextensions -v
color
Kevin Bullock
test-debugextensions: passes with byte-compilation disabled (issue5147)
r28615 location: */hgext/color.py* (glob)
liscju
mercurial: add debugextensions command (issue4676)...
r26351 tested with: internal
ext1
Kevin Bullock
test-debugextensions: passes with byte-compilation disabled (issue5147)
r28615 location: */extwithoutinfos.py* (glob)
liscju
mercurial: add debugextensions command (issue4676)...
r26351 histedit
Kevin Bullock
test-debugextensions: passes with byte-compilation disabled (issue5147)
r28615 location: */hgext/histedit.py* (glob)
liscju
mercurial: add debugextensions command (issue4676)...
r26351 tested with: internal
mq
Kevin Bullock
test-debugextensions: passes with byte-compilation disabled (issue5147)
r28615 location: */hgext/mq.py* (glob)
liscju
mercurial: add debugextensions command (issue4676)...
r26351 tested with: internal
patchbomb
Kevin Bullock
test-debugextensions: passes with byte-compilation disabled (issue5147)
r28615 location: */hgext/patchbomb.py* (glob)
liscju
mercurial: add debugextensions command (issue4676)...
r26351 tested with: internal
rebase
Kevin Bullock
test-debugextensions: passes with byte-compilation disabled (issue5147)
r28615 location: */hgext/rebase.py* (glob)
liscju
mercurial: add debugextensions command (issue4676)...
r26351 tested with: internal
Matt Harbison
test-debugextensions: sanitize JSON output for Windows...
r26430 $ hg debugextensions -Tjson | sed 's|\\\\|/|g'
liscju
mercurial: add debugextensions command (issue4676)...
r26351 [
{
"buglink": "",
"name": "color",
Kevin Bullock
test-debugextensions: passes with byte-compilation disabled (issue5147)
r28615 "source": "*/hgext/color.py*", (glob)
liscju
mercurial: add debugextensions command (issue4676)...
r26351 "testedwith": "internal"
},
{
"buglink": "",
"name": "ext1",
Kevin Bullock
test-debugextensions: passes with byte-compilation disabled (issue5147)
r28615 "source": "*/extwithoutinfos.py*", (glob)
liscju
mercurial: add debugextensions command (issue4676)...
r26351 "testedwith": ""
},
{
"buglink": "",
"name": "histedit",
Kevin Bullock
test-debugextensions: passes with byte-compilation disabled (issue5147)
r28615 "source": "*/hgext/histedit.py*", (glob)
liscju
mercurial: add debugextensions command (issue4676)...
r26351 "testedwith": "internal"
},
{
"buglink": "",
"name": "mq",
Kevin Bullock
test-debugextensions: passes with byte-compilation disabled (issue5147)
r28615 "source": "*/hgext/mq.py*", (glob)
liscju
mercurial: add debugextensions command (issue4676)...
r26351 "testedwith": "internal"
},
{
"buglink": "",
"name": "patchbomb",
Kevin Bullock
test-debugextensions: passes with byte-compilation disabled (issue5147)
r28615 "source": "*/hgext/patchbomb.py*", (glob)
liscju
mercurial: add debugextensions command (issue4676)...
r26351 "testedwith": "internal"
},
{
"buglink": "",
"name": "rebase",
Kevin Bullock
test-debugextensions: passes with byte-compilation disabled (issue5147)
r28615 "source": "*/hgext/rebase.py*", (glob)
liscju
mercurial: add debugextensions command (issue4676)...
r26351 "testedwith": "internal"
}
]