comparison tests/test_util.py @ 696:c11bf0dd38d3

tests: enable hgsubversion in the generated UI. This allows testing hgsubversion using Mercurial's dispatch logic.
author Dan Villiom Podlaski Christiansen <danchr@gmail.com>
date Mon, 20 Sep 2010 17:08:18 +0200
parents 35a1e93b6f78
children 1f1a3a6730c1
comparison
equal deleted inserted replaced
695:066b9c8e500e 696:c11bf0dd38d3
100 100
101 def testui(stupid=False, layout='auto', startrev=0): 101 def testui(stupid=False, layout='auto', startrev=0):
102 u = ui.ui() 102 u = ui.ui()
103 bools = {True: 'true', False: 'false'} 103 bools = {True: 'true', False: 'false'}
104 u.setconfig('ui', 'quiet', bools[True]) 104 u.setconfig('ui', 'quiet', bools[True])
105 u.setconfig('extensions', 'hgsubversion', '')
105 u.setconfig('hgsubversion', 'stupid', bools[stupid]) 106 u.setconfig('hgsubversion', 'stupid', bools[stupid])
106 u.setconfig('hgsubversion', 'layout', layout) 107 u.setconfig('hgsubversion', 'layout', layout)
107 u.setconfig('hgsubversion', 'startrev', startrev) 108 u.setconfig('hgsubversion', 'startrev', startrev)
108 return u 109 return u
109 110