Commit Graph

9 Commits

Author SHA1 Message Date
Yuya Nishihara
1d44bd2bbb 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.
2016-10-22 14:35:10 +09:00
Yuya Nishihara
a5c934df3c py3: move up symbol imports to enforce import-checker rules
Since (b) is banned, we should do the same for (a) for consistency.

 a) from mercurial import hg
    from mercurial.i18n import _

 b) from . import hg
    from .i18n import _
2016-05-14 14:03:12 +09:00
Yuya Nishihara
a0a844ca84 test-filelog: alias ui as uimod 2016-04-05 23:17:43 +09:00
Robert Stanca
00572a2f9d py3: use print_function in test-filelog.py 2016-04-04 00:17:11 +03:00
Robert Stanca
46a8931c72 py3: use absolute_import in test-filelog.py 2016-04-03 17:10:12 +03:00
timeless@mozdev.org
52eae47139 spelling: behaviour -> behavior 2015-08-28 10:53:55 -04:00
Augie Fackler
955a4ecb28 test-filelog: move from dict() construction to {} literals
The latter are both faster and more consistent across Python 2 and 3.
2014-03-12 13:21:02 -04:00
timeless@mozdev.org
b359440d1b spelling: doesn't/does not 2012-08-17 13:58:18 -07:00
Mads Kiilerich
a01cdd42fb tests: test test-filelog is python - rename to test-filelog.py 2012-04-23 01:57:17 +02:00