##// END OF EJS Templates
tests: alias ui as uimod in test-revlog-ancestry/test-ui-verbosity
Yuya Nishihara -
r28842:d466facc default
parent child Browse files
Show More
@@ -3,10 +3,10 b' import os'
3 from mercurial import (
3 from mercurial import (
4 hg,
4 hg,
5 merge,
5 merge,
6 ui,
6 ui as uimod,
7 )
7 )
8
8
9 u = ui.ui()
9 u = uimod.ui()
10
10
11 repo = hg.repository(u, 'test1', create=1)
11 repo = hg.repository(u, 'test1', create=1)
12 os.chdir('test1')
12 os.chdir('test1')
@@ -1,7 +1,9 b''
1 from __future__ import absolute_import, print_function
1 from __future__ import absolute_import, print_function
2
2
3 import os
3 import os
4 from mercurial import ui
4 from mercurial import (
5 ui as uimod,
6 )
5
7
6 hgrc = os.environ['HGRCPATH']
8 hgrc = os.environ['HGRCPATH']
7 f = open(hgrc)
9 f = open(hgrc)
@@ -30,7 +32,7 b' for i in xrange(64):'
30 f.write('debug = True\n')
32 f.write('debug = True\n')
31 f.close()
33 f.close()
32
34
33 u = ui.ui()
35 u = uimod.ui()
34 if cmd_quiet or cmd_debug or cmd_verbose:
36 if cmd_quiet or cmd_debug or cmd_verbose:
35 u.setconfig('ui', 'quiet', str(bool(cmd_quiet)))
37 u.setconfig('ui', 'quiet', str(bool(cmd_quiet)))
36 u.setconfig('ui', 'verbose', str(bool(cmd_verbose)))
38 u.setconfig('ui', 'verbose', str(bool(cmd_verbose)))
General Comments 0
You need to be logged in to leave comments. Login now