Show More
@@ -1,5 +1,6 b'' | |||||
1 | from __future__ import absolute_import |
|
1 | from __future__ import absolute_import | |
2 |
|
2 | |||
|
3 | import collections | |||
3 | import errno |
|
4 | import errno | |
4 | import shutil |
|
5 | import shutil | |
5 | import struct |
|
6 | import struct | |
@@ -194,7 +195,7 b' class mergestate(object):' | |||||
194 |
|
195 | |||
195 | def reset(self, node=None, other=None, labels=None): |
|
196 | def reset(self, node=None, other=None, labels=None): | |
196 | self._state = {} |
|
197 | self._state = {} | |
197 |
self._stateextras = |
|
198 | self._stateextras = collections.defaultdict(dict) | |
198 | self._local = None |
|
199 | self._local = None | |
199 | self._other = None |
|
200 | self._other = None | |
200 | self._labels = labels |
|
201 | self._labels = labels | |
@@ -220,7 +221,7 b' class mergestate(object):' | |||||
220 | of on disk file. |
|
221 | of on disk file. | |
221 | """ |
|
222 | """ | |
222 | self._state = {} |
|
223 | self._state = {} | |
223 |
self._stateextras = |
|
224 | self._stateextras = collections.defaultdict(dict) | |
224 | self._local = None |
|
225 | self._local = None | |
225 | self._other = None |
|
226 | self._other = None | |
226 | for var in ('localctx', 'otherctx'): |
|
227 | for var in ('localctx', 'otherctx'): | |
@@ -626,7 +627,7 b' class mergestate(object):' | |||||
626 | yield f |
|
627 | yield f | |
627 |
|
628 | |||
628 | def extras(self, filename): |
|
629 | def extras(self, filename): | |
629 |
return self._stateextras |
|
630 | return self._stateextras[filename] | |
630 |
|
631 | |||
631 | def _resolve(self, preresolve, dfile, wctx): |
|
632 | def _resolve(self, preresolve, dfile, wctx): | |
632 | """rerun merge process for file path `dfile`. |
|
633 | """rerun merge process for file path `dfile`. |
General Comments 0
You need to be logged in to leave comments.
Login now