Mercurial > kallithea
annotate dev_requirements.txt @ 7580:927b7934b867
utils: let make_ui return an empty ui.ui() object if the requested hgrc file isn't present
89c30b145bb8 lost an "if repoui" in simplehg, and Kallithea would thus fail on
serving repos without a .hg/hgrc :
File ".../kallithea/lib/middleware/simplehg.py", line 285, in _augment_hgrc
for k, v in repoui.configitems(section):
AttributeError: 'bool' object has no attribute 'configitems'
It is *only* simplehg that invoke make_ui with read_from 'file'. In this case
it could return False if the requested file wasn't present.
It was odd and inconsistent that make_ui with read_from 'file' either returned
an ui object or the value False.
To fix the problem, just let make_ui return the empty ui.ui() if no .hg/hgrc is
present. An ui object that just doesn't have any config sections is much better
than any alternative.
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Tue, 19 Mar 2019 03:05:11 +0100 |
parents | 55fc0bcce916 |
children | 9efcf6b78f71 |
rev | line source |
---|---|
7372
55fc0bcce916
setup: bump all upper pip dependency versions to minor updates of what currently is available and testable on pypi
Mads Kiilerich <mads@kiilerich.com>
parents:
7347
diff
changeset
|
1 Babel >= 0.9.6, < 2.7 |
55fc0bcce916
setup: bump all upper pip dependency versions to minor updates of what currently is available and testable on pypi
Mads Kiilerich <mads@kiilerich.com>
parents:
7347
diff
changeset
|
2 pytest >= 3.3.0, < 3.8 |
55fc0bcce916
setup: bump all upper pip dependency versions to minor updates of what currently is available and testable on pypi
Mads Kiilerich <mads@kiilerich.com>
parents:
7347
diff
changeset
|
3 pytest-runner < 4.3 |
55fc0bcce916
setup: bump all upper pip dependency versions to minor updates of what currently is available and testable on pypi
Mads Kiilerich <mads@kiilerich.com>
parents:
7347
diff
changeset
|
4 pytest-sugar >= 0.7.0, < 0.10 |
55fc0bcce916
setup: bump all upper pip dependency versions to minor updates of what currently is available and testable on pypi
Mads Kiilerich <mads@kiilerich.com>
parents:
7347
diff
changeset
|
5 pytest-benchmark < 3.2 |
55fc0bcce916
setup: bump all upper pip dependency versions to minor updates of what currently is available and testable on pypi
Mads Kiilerich <mads@kiilerich.com>
parents:
7347
diff
changeset
|
6 pytest-localserver < 0.5 |
55fc0bcce916
setup: bump all upper pip dependency versions to minor updates of what currently is available and testable on pypi
Mads Kiilerich <mads@kiilerich.com>
parents:
7347
diff
changeset
|
7 mock < 2.1 |
55fc0bcce916
setup: bump all upper pip dependency versions to minor updates of what currently is available and testable on pypi
Mads Kiilerich <mads@kiilerich.com>
parents:
7347
diff
changeset
|
8 Sphinx < 1.8 |
55fc0bcce916
setup: bump all upper pip dependency versions to minor updates of what currently is available and testable on pypi
Mads Kiilerich <mads@kiilerich.com>
parents:
7347
diff
changeset
|
9 WebTest < 2.1 |
55fc0bcce916
setup: bump all upper pip dependency versions to minor updates of what currently is available and testable on pypi
Mads Kiilerich <mads@kiilerich.com>
parents:
7347
diff
changeset
|
10 WebOb >= 1.7, < 1.8 # turbogears2 2.3.12 requires WebOb<1.8.0, WebTest has WebOb>=1.2 |