Mercurial > hgsubversion
comparison tests/test_util.py @ 516:f089f46729ee
tests: make better use of the config options for fixture loading
author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
---|---|
date | Thu, 17 Dec 2009 14:44:07 +0100 |
parents | c421e6bf0d95 |
children | 60bf433647e7 |
comparison
equal
deleted
inserted
replaced
515:9fadbf0686a1 | 516:f089f46729ee |
---|---|
113 if subdir: | 113 if subdir: |
114 repo_path += '/' + subdir | 114 repo_path += '/' + subdir |
115 | 115 |
116 confvars = locals() | 116 confvars = locals() |
117 def conf(): | 117 def conf(): |
118 _ui = ui.ui() | |
118 for var in ('stupid', 'layout'): | 119 for var in ('stupid', 'layout'): |
119 _ui = ui.ui() | 120 _ui.setconfig('hgsubversion', var, str(confvars[var])) |
120 _ui.setconfig('hgsubversion', var, confvars[var]) | |
121 return _ui | 121 return _ui |
122 _ui = conf() | 122 _ui = conf() |
123 commands.clone(_ui, fileurl(repo_path), wc_path, noupdate=noupdate) | 123 commands.clone(_ui, fileurl(repo_path), wc_path, noupdate=noupdate) |
124 _ui = conf() | 124 _ui = conf() |
125 return hg.repository(_ui, wc_path) | 125 return hg.repository(_ui, wc_path) |