comparison tests/test-duplicateoptions.py @ 28804:ce49c8d4f0bb

test-duplicateoptions: alias ui as uimod
author Yuya Nishihara <yuya@tcha.org>
date Tue, 05 Apr 2016 23:17:05 +0900
parents e8ecd1aa3f6c
children d83ca854fa21
comparison
equal deleted inserted replaced
28803:76c091f9711e 28804:ce49c8d4f0bb
1 from __future__ import absolute_import, print_function 1 from __future__ import absolute_import, print_function
2 import os 2 import os
3 from mercurial import ( 3 from mercurial import (
4 commands, 4 commands,
5 extensions, 5 extensions,
6 ui, 6 ui as uimod,
7 ) 7 )
8 8
9 ignore = set(['highlight', 'win32text', 'factotum']) 9 ignore = set(['highlight', 'win32text', 'factotum'])
10 10
11 if os.name != 'nt': 11 if os.name != 'nt':
19 for ext in disabled: 19 for ext in disabled:
20 hgrc.write(ext + '=\n') 20 hgrc.write(ext + '=\n')
21 21
22 hgrc.close() 22 hgrc.close()
23 23
24 u = ui.ui() 24 u = uimod.ui()
25 extensions.loadall(u) 25 extensions.loadall(u)
26 26
27 globalshort = set() 27 globalshort = set()
28 globallong = set() 28 globallong = set()
29 for option in commands.globalopts: 29 for option in commands.globalopts: