evolve: pass the base revision in _completecontentdivergent()
We need the base revision to merge commit messages, branches and more stuff.
Let's make sure we have that by passing into the function which completes the
divergence resolution.
--- a/hgext3rd/evolve/evolvecmd.py Tue Jun 05 03:49:49 2018 +0530
+++ b/hgext3rd/evolve/evolvecmd.py Tue Jun 05 03:51:01 2018 +0530
@@ -435,10 +435,10 @@
" use 'hg update -C .' to abort"))
return _completecontentdivergent(ui, repo, progresscb, divergent, other,
- evolvestate)
+ base, evolvestate)
def _completecontentdivergent(ui, repo, progresscb, divergent, other,
- evolvestate):
+ base, evolvestate):
"""completes the content-divergence resolution"""
# no conflicts were there in merging content divergent changesets, let's
# resume resolution
@@ -1398,6 +1398,7 @@
ret = _completecontentdivergent(ui, repo, progresscb,
repo[divergent],
repo[other],
+ repo[base],
evolvestate)
evolvestate['replacements'][divergent] = ret[1]
tr.close()