# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 1528150861 -19800 # Node ID 13eef43a961f1cadb6a2d189833bf55dc0a80870 # Parent ae30da2e210d5a6ba45267d267e0892267ff9940 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. diff -r ae30da2e210d -r 13eef43a961f hgext3rd/evolve/evolvecmd.py --- 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()