ui: factor out ui.load() to create a ui without loading configs (API)
This allows us to write doctests depending on a ui object, but not on global configs. ui.load() is a class method so we can do wsgiui.load(). All ui() calls but for doctests are replaced with ui.load(). Some of them could be changed to not load configs later.
Showing
- contrib/benchmarks/__init__.py 1 addition, 1 deletioncontrib/benchmarks/__init__.py
- contrib/simplemerge 1 addition, 1 deletioncontrib/simplemerge
- doc/check-seclevel.py 1 addition, 1 deletiondoc/check-seclevel.py
- doc/gendoc.py 1 addition, 1 deletiondoc/gendoc.py
- mercurial/dispatch.py 1 addition, 1 deletionmercurial/dispatch.py
- mercurial/hgweb/hgweb_mod.py 1 addition, 2 deletionsmercurial/hgweb/hgweb_mod.py
- mercurial/hgweb/hgwebdir_mod.py 1 addition, 1 deletionmercurial/hgweb/hgwebdir_mod.py
- mercurial/hgweb/webcommands.py 1 addition, 1 deletionmercurial/hgweb/webcommands.py
- mercurial/ui.py 15 additions, 3 deletionsmercurial/ui.py
- tests/dummysmtpd.py 1 addition, 1 deletiontests/dummysmtpd.py
- tests/hghave.py 2 additions, 2 deletionstests/hghave.py
- tests/test-ancestor.py 1 addition, 1 deletiontests/test-ancestor.py
- tests/test-basic.t 1 addition, 1 deletiontests/test-basic.t
- tests/test-bisect.t 1 addition, 1 deletiontests/test-bisect.t
- tests/test-clone.t 2 additions, 2 deletionstests/test-clone.t
- tests/test-commit-interactive-curses.t 1 addition, 1 deletiontests/test-commit-interactive-curses.t
- tests/test-commit-multiple.t 1 addition, 1 deletiontests/test-commit-multiple.t
- tests/test-commit.t 3 additions, 3 deletionstests/test-commit.t
- tests/test-context.py 1 addition, 1 deletiontests/test-context.py
- tests/test-duplicateoptions.py 1 addition, 1 deletiontests/test-duplicateoptions.py
Loading
Please register or sign in to comment