# HG changeset patch # User David Schleimer # Date 1367268712 25200 # Node ID ea6109f5c000d71b052dfff94079254b5a52df14 # Parent 0ed7cf23e801cb7581ec5d62242949eb74a93053 layouts: use layouts library for branch mapping with generating .hgignore diff --git a/hgsubversion/svncommands.py b/hgsubversion/svncommands.py --- a/hgsubversion/svncommands.py +++ b/hgsubversion/svncommands.py @@ -374,10 +374,9 @@ def genignore(ui, repo, force=False, **o hashes = meta.revmap.hashes() parent = util.parentrev(ui, repo, meta, hashes) r, br = hashes[parent.node()] - if meta.layout == 'single': - branchpath = '' - else: - branchpath = br and ('branches/%s/' % br) or 'trunk/' + branchpath = meta.layoutobj.remotename(br) + if branchpath: + branchpath += '/' ignorelines = ['.hgignore', 'syntax:glob'] dirs = [''] + [d[0] for d in svn.list_files(branchpath, r) if d[1] == 'd']