Mercurial > hgsubversion
comparison tests/test_util.py @ 1493:bac709b5ff6c stable
testui: set a username so recording obsolete markers doesn't break
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Sun, 12 Feb 2017 15:16:16 -0500 |
parents | 89997a5fc181 |
children | 0991df151799 |
comparison
equal
deleted
inserted
replaced
1488:8d8fc10d0d0a | 1493:bac709b5ff6c |
---|---|
282 | 282 |
283 def testui(stupid=False, layout='auto', startrev=0): | 283 def testui(stupid=False, layout='auto', startrev=0): |
284 u = ui.ui() | 284 u = ui.ui() |
285 bools = {True: 'true', False: 'false'} | 285 bools = {True: 'true', False: 'false'} |
286 u.setconfig('ui', 'quiet', bools[True]) | 286 u.setconfig('ui', 'quiet', bools[True]) |
287 u.setconfig('ui', 'username', 'automated tests') | |
287 u.setconfig('extensions', 'hgsubversion', '') | 288 u.setconfig('extensions', 'hgsubversion', '') |
288 u.setconfig('hgsubversion', 'stupid', bools[stupid]) | 289 u.setconfig('hgsubversion', 'stupid', bools[stupid]) |
289 u.setconfig('hgsubversion', 'layout', layout) | 290 u.setconfig('hgsubversion', 'layout', layout) |
290 u.setconfig('hgsubversion', 'startrev', startrev) | 291 u.setconfig('hgsubversion', 'startrev', startrev) |
291 return u | 292 return u |