Mercurial > hgsubversion
comparison tests/test_util.py @ 1497:0991df151799
Merge with stable.
| author | Augie Fackler <raf@durin42.com> |
|---|---|
| date | Sun, 12 Feb 2017 16:30:28 -0500 |
| parents | 1a4d0f1563d0 bac709b5ff6c |
| children | b3e41b0d50a2 |
comparison
equal
deleted
inserted
replaced
| 1491:8937f19586fe | 1497:0991df151799 |
|---|---|
| 291 | 291 |
| 292 def testui(stupid=False, layout='auto', startrev=0): | 292 def testui(stupid=False, layout='auto', startrev=0): |
| 293 u = ui.ui() | 293 u = ui.ui() |
| 294 bools = {True: 'true', False: 'false'} | 294 bools = {True: 'true', False: 'false'} |
| 295 u.setconfig('ui', 'quiet', bools[True]) | 295 u.setconfig('ui', 'quiet', bools[True]) |
| 296 u.setconfig('ui', 'username', 'automated tests') | |
| 296 u.setconfig('extensions', 'hgsubversion', '') | 297 u.setconfig('extensions', 'hgsubversion', '') |
| 297 u.setconfig('hgsubversion', 'stupid', bools[stupid]) | 298 u.setconfig('hgsubversion', 'stupid', bools[stupid]) |
| 298 u.setconfig('hgsubversion', 'layout', layout) | 299 u.setconfig('hgsubversion', 'layout', layout) |
| 299 u.setconfig('hgsubversion', 'startrev', startrev) | 300 u.setconfig('hgsubversion', 'startrev', startrev) |
| 300 return u | 301 return u |
