comparison hgsubversion/svnmeta.py @ 1263:54cf64e9ef49

svnmeta: use util.dump instead of layout_to_file
author Sean Farley <sean.michael.farley@gmail.com>
date Mon, 24 Mar 2014 11:20:49 -0500
parents 51f88d3aa4dd
children 4744b7bfa476
comparison
equal deleted inserted replaced
1262:199933008ab5 1263:54cf64e9ef49
146 # this method can't determine the layout, but it needs to be 146 # this method can't determine the layout, but it needs to be
147 # resolved into something other than auto before this ever 147 # resolved into something other than auto before this ever
148 # gets called 148 # gets called
149 if not self._layout or self._layout == 'auto': 149 if not self._layout or self._layout == 'auto':
150 self._layout = layouts.detect.layout_from_config(self.repo.ui) 150 self._layout = layouts.detect.layout_from_config(self.repo.ui)
151 layouts.persist.layout_to_file(self.metapath, self._layout) 151 util.dump(self._layout, self.layout_file)
152 return self._layout 152 return self._layout
153 153
154 @property 154 @property
155 def layoutobj(self): 155 def layoutobj(self):
156 if not self._layoutobj: 156 if not self._layoutobj: