compat: use mergetoolopts from commands.py
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 21 Mar 2018 19:30:51 +0100
changeset 3579 3a4552b30ba8
parent 3578 10c3e69bb5bf
child 3580 031d70bcbb42
compat: use mergetoolopts from commands.py Mercurial <= 4.2 do not have cmdutils.py yet.
hgext3rd/evolve/evolvecmd.py
--- a/hgext3rd/evolve/evolvecmd.py	Wed Mar 21 15:24:51 2018 +0100
+++ b/hgext3rd/evolve/evolvecmd.py	Wed Mar 21 19:30:51 2018 +0100
@@ -14,6 +14,7 @@
 from mercurial import (
     bookmarks as bookmarksmod,
     cmdutil,
+    commands,
     context,
     copies,
     error,
@@ -45,7 +46,7 @@
 
 eh = exthelper.exthelper()
 _bookmarksupdater = rewriteutil.bookmarksupdater
-mergetoolopts = cmdutil.mergetoolopts
+mergetoolopts = commands.mergetoolopts
 
 def _solveone(ui, repo, ctx, evolvestate, dryrun, confirm,
               progresscb, category):