Mercurial > hgsubversion
changeset 1297:fc48e1065926
wrappers: use meta.branch instead of ui.config directly
author | Sean Farley <sean.michael.farley@gmail.com> |
---|---|
date | Mon, 24 Mar 2014 11:20:53 -0500 |
parents | 631a572658c2 |
children | 4ba1481484e6 |
files | hgsubversion/wrappers.py |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/hgsubversion/wrappers.py +++ b/hgsubversion/wrappers.py @@ -406,14 +406,13 @@ def pull(repo, source, heads=[], force=F meta) repo.ui.note('using %s layout\n' % layout) - branch = repo.ui.config('hgsubversion', 'branch') - if branch: + if meta.branch: if layout != 'single': msg = ('branch cannot be specified for Subversion clones using ' 'standard directory layout') raise hgutil.Abort(msg) - meta.branchmap['default'] = branch + meta.branchmap['default'] = meta.branch ui = repo.ui start = meta.lastpulled