# HG changeset patch # User Sean Farley # Date 1395678055 18000 # Node ID 80b57ed925440d58f65e88771bdf84a221ff4809 # Parent f5df4bb6f330d72a58aee3267e849cadac936960 svnmeta: create a new layoutobj if layout has changed diff --git a/hgsubversion/svnmeta.py b/hgsubversion/svnmeta.py --- a/hgsubversion/svnmeta.py +++ b/hgsubversion/svnmeta.py @@ -213,7 +213,8 @@ class SVNMeta(object): @property def layoutobj(self): - if not self._layoutobj: + # if self.layout has changed, we need to create a new layoutobj + if not self._layoutobj or self._layoutobj.name != self.layout: self._layoutobj = layouts.layout_from_name(self.layout, self) return self._layoutobj