# HG changeset patch # User Sean Farley # Date 1395678056 18000 # Node ID 118e6d31b5fcc7e34fc7c75d762245f1bcabfb11 # Parent 72fe317a7b94b0a8a8ac2865f4e2be2dd6436c8c layouts: generate cached property for custom branches diff --git a/hgsubversion/layouts/custom.py b/hgsubversion/layouts/custom.py --- a/hgsubversion/layouts/custom.py +++ b/hgsubversion/layouts/custom.py @@ -18,7 +18,9 @@ class CustomLayout(base.BaseLayout): self.svn_to_hg = {} self.hg_to_svn = {} - for hg_branch, svn_path in meta.ui.configitems('hgsubversionbranch'): + meta._gen_cachedconfig('custombranches', {}, configname='hgsubversionbranch') + + for hg_branch, svn_path in meta.custombranches.iteritems(): hg_branch = hg_branch.strip() if hg_branch == 'default' or not hg_branch: