changeset 1312:80b57ed92544

svnmeta: create a new layoutobj if layout has changed
author Sean Farley <sean.michael.farley@gmail.com>
date Mon, 24 Mar 2014 11:20:55 -0500
parents f5df4bb6f330
children 5f80c92be718
files hgsubversion/svnmeta.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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