changeset 4257:4a8f59b69d37

compat: drop 4.3 compatiblity code for `ui.edit` method
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Mon, 19 Nov 2018 01:44:28 +0000
parents e7e154b2388b
children 697ec7c2f325
files hgext3rd/evolve/evolvecmd.py
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/hgext3rd/evolve/evolvecmd.py	Mon Nov 19 01:42:50 2018 +0000
+++ b/hgext3rd/evolve/evolvecmd.py	Mon Nov 19 01:44:28 2018 +0000
@@ -715,10 +715,7 @@
                     " content-divergent changesets.\nHG: Resolve conflicts"
                     " in commit messages to continue.\n\n")
 
-        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())
+        resolveddesc = ui.edit(prefixes + desc, ui.username(), action='desc')
         # make sure we remove the prefixes part from final commit message
         if prefixes in resolveddesc:
             # hack, we should find something better