Mercurial > kallithea
view .hgignore @ 8888:f0fbb0fe4462
git: update check for invalid URL characters to work with Python versions that include an attempt at fixing the very same problem
With changes like
https://github.com/python/cpython/commit/76cd81d60310d65d01f9d7b48a8985d8ab89c8b4
making it to Python 3.10 and being backported to previous Python versions, the
approach in a8a51a3bdb61 no longer works when combined with
urllib.parse.urlparse in d2f59de17bef: path will never contain the invalid
characters.
To catch this case anyway, add a new check to verify that the parsed URL can
roundtrip back to the original representation with urllib.parse.urlunparse .
The actual exception might vary, but one of them should always fire.
There is a risk that the new check will reject some URLs that somehow isn't
normalized. No such cases have been found yet.
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Tue, 18 May 2021 00:58:06 +0200 |
parents | 278cc5936ed5 |
children |
line wrap: on
line source
syntax: glob *.pyc *.swp *.sqlite *.tox *.egg-info *.egg *.mo *.orig *.rej *.bak .eggs/ syntax: regexp ^extensions\.py$ ^build$ ^dist$ ^docs/build$ ^docs/_build$ ^data$ ^sql_dumps$ ^\.settings$ ^\.project$ ^\.pydevproject$ ^\.coverage$ ^kallithea/front-end/node_modules$ ^kallithea/front-end/package-lock\.json$ ^kallithea/front-end/theme\.less$ ^kallithea/front-end/tmp$ ^kallithea/public/codemirror$ ^kallithea/public/css/select2-spinner\.gif$ ^kallithea/public/css/select2\.png$ ^kallithea/public/css/select2x2\.png$ ^kallithea/public/css/style\.css$ ^kallithea/public/css/style\.css\.map$ ^kallithea/public/js/bootstrap\.js$ ^kallithea/public/js/dataTables\.bootstrap\.js$ ^kallithea/public/js/jquery\.atwho\.min\.js$ ^kallithea/public/js/jquery\.caret\.min\.js$ ^kallithea/public/js/jquery\.dataTables\.js$ ^kallithea/public/js/jquery\.flot\.js$ ^kallithea/public/js/jquery\.flot\.selection\.js$ ^kallithea/public/js/jquery\.flot\.time\.js$ ^kallithea/public/js/jquery\.min\.js$ ^kallithea/public/js/select2\.js$ ^kallithea\.db$ ^test\.db$ ^Kallithea\.egg-info$ ^my\.ini$ ^fabfile\.py$ ^\.idea$ ^\.cache$ ^\.pytest_cache$ ^venv$ /__pycache__$ ^deps\.dot$ ^deps\.svg$ ^deps\.txt$ ^\.pytype/