Mercurial > hg-stable
changeset 26615:c9223a3979b7
merge.mergestate: add a wrapper around resolve
The resolve function will be broken up into separate pre-resolve and resolve
steps.
author | Siddharth Agarwal <sid0@fb.com> |
---|---|
date | Sun, 11 Oct 2015 18:29:50 -0700 |
parents | ef1eb6df7071 |
children | 2f1fce0d4e86 |
files | mercurial/merge.py |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/merge.py Fri Oct 09 13:54:52 2015 -0700 +++ b/mercurial/merge.py Sun Oct 11 18:29:50 2015 -0700 @@ -287,7 +287,7 @@ if entry[0] == 'u': yield f - def resolve(self, dfile, wctx, labels=None): + def _resolve(self, dfile, wctx, labels=None): """rerun merge process for file path `dfile`""" if self[dfile] == 'r': return 0 @@ -323,6 +323,10 @@ self.mark(dfile, 'r') return r + def resolve(self, dfile, wctx, labels=None): + """rerun merge process for file path `dfile`""" + return self._resolve(dfile, wctx, labels=labels) + def _checkunknownfile(repo, wctx, mctx, f, f2=None): if f2 is None: f2 = f