# HG changeset patch # User Sean Farley # Date 1395678055 18000 # Node ID f5df4bb6f330d72a58aee3267e849cadac936960 # Parent a6d3692a580011de66670cbbc7d7408f7d6f1358 layouts: add a name property to custom diff --git a/hgsubversion/layouts/custom.py b/hgsubversion/layouts/custom.py --- a/hgsubversion/layouts/custom.py +++ b/hgsubversion/layouts/custom.py @@ -38,6 +38,10 @@ class CustomLayout(base.BaseLayout): self.svn_to_hg[svn_path] = hg_branch self.hg_to_svn[hg_branch] = svn_path + @property + def name(self): + return 'custom' + def localname(self, path): if path in self.svn_to_hg: return self.svn_to_hg[path]