comparison mercurial/merge.py @ 19285:feaf5749d7a4

merge: add a files method to the mergestate class This will be used in the upcoming shelve extension.
author Bryan O'Sullivan <bryano@fb.com>
date Mon, 03 Jun 2013 17:20:37 -0700
parents c58b6ab4c26f
children 499fc471296b
comparison
equal deleted inserted replaced
19283:8300adf9ca33 19285:feaf5749d7a4
59 def __iter__(self): 59 def __iter__(self):
60 l = self._state.keys() 60 l = self._state.keys()
61 l.sort() 61 l.sort()
62 for f in l: 62 for f in l:
63 yield f 63 yield f
64 def files(self):
65 return self._state.keys()
64 def mark(self, dfile, state): 66 def mark(self, dfile, state):
65 self._state[dfile][0] = state 67 self._state[dfile][0] = state
66 self._dirty = True 68 self._dirty = True
67 def resolve(self, dfile, wctx, octx): 69 def resolve(self, dfile, wctx, octx):
68 if self[dfile] == 'r': 70 if self[dfile] == 'r':