compat: drop 4.3 compatiblity code for `ui.edit` method
authorPierre-Yves David <pierre-yves.david@octobus.net>
Mon, 19 Nov 2018 01:44:28 +0000
changeset 4257 4a8f59b69d37
parent 4256 e7e154b2388b
child 4258 697ec7c2f325
compat: drop 4.3 compatiblity code for `ui.edit` method
hgext3rd/evolve/evolvecmd.py
--- 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