# HG changeset patch # User Pierre-Yves David # Date 1533175914 -7200 # Node ID b4589df6d3aa8638529599ec3ad9330ebbdcb261 # Parent 35172bd95e57e77dd10b3e9b81fdb89f7bbba536 compat: make compatible call to ui.edit for hg <= 4.3 This is similar to what is already happening elsewhere. diff -r 35172bd95e57 -r b4589df6d3aa hgext3rd/evolve/evolvecmd.py --- a/hgext3rd/evolve/evolvecmd.py Thu Aug 02 03:08:52 2018 +0200 +++ b/hgext3rd/evolve/evolvecmd.py Thu Aug 02 04:11:54 2018 +0200 @@ -707,7 +707,10 @@ " content-divergent changesets.\nHG: Resolve conflicts" " in commit messages to continue.\n\n") - resolveddesc = ui.edit(prefixes + desc, ui.username(), action='desc') + if 5 <= len(ui.edit.im_func.func_defaults): # <= hg-4.3 + resolveddesc = ui.edit(prefixes + desc, ui.username(), action='desc') + else: + resolveddesc = ui.edit(prefixes + desc, ui.username()) # make sure we remove the prefixes part from final commit message if prefixes in resolveddesc: # hack, we should find something better