##// END OF EJS Templates
mergestate: move most of of reset() into start()...
Martin von Zweigbergk -
r46066:9ea4b52a default
parent child Browse files
Show More
@@ -200,6 +200,12 b' class mergestate(object):'
200 self._labels = None
200 self._labels = None
201
201
202 def reset(self):
202 def reset(self):
203 shutil.rmtree(self._repo.vfs.join(b'merge'), True)
204
205 def start(self, node, other, labels=None):
206 self._local = node
207 self._other = other
208 self._labels = labels
203 self._state = {}
209 self._state = {}
204 self._stateextras = collections.defaultdict(dict)
210 self._stateextras = collections.defaultdict(dict)
205 for var in ('localctx', 'otherctx'):
211 for var in ('localctx', 'otherctx'):
@@ -210,15 +216,9 b' class mergestate(object):'
210 self._mdstate = MERGE_DRIVER_STATE_SUCCESS
216 self._mdstate = MERGE_DRIVER_STATE_SUCCESS
211 else:
217 else:
212 self._mdstate = MERGE_DRIVER_STATE_UNMARKED
218 self._mdstate = MERGE_DRIVER_STATE_UNMARKED
213 shutil.rmtree(self._repo.vfs.join(b'merge'), True)
214 self._results = {}
219 self._results = {}
215 self._dirty = False
220 self._dirty = False
216
221
217 def start(self, node, other, labels=None):
218 self._local = node
219 self._other = other
220 self._labels = labels
221
222 def _read(self):
222 def _read(self):
223 """Analyse each record content to restore a serialized state from disk
223 """Analyse each record content to restore a serialized state from disk
224
224
General Comments 0
You need to be logged in to leave comments. Login now