compat: drop some <hg-3.4 compatibility code
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Tue, 14 Mar 2017 09:50:55 -0700
changeset 2100 e5b06a6d8d4b
parent 2099 47017b3086d4
child 2101 de92f7efb030
compat: drop some <hg-3.4 compatibility code The `hg commit` commands has a -i flag for ages now.
hgext3rd/evolve/__init__.py
--- a/hgext3rd/evolve/__init__.py	Mon Mar 13 23:28:57 2017 -0700
+++ b/hgext3rd/evolve/__init__.py	Tue Mar 14 09:50:55 2017 -0700
@@ -134,11 +134,7 @@
 _unpack = struct.unpack
 
 aliases, entry = cmdutil.findcmd('commit', commands.table)
-hasinteractivemode = any(['interactive' in e for e in entry[1]])
-if hasinteractivemode:
-    interactiveopt = [['i', 'interactive', None, _('use interactive mode')]]
-else:
-    interactiveopt = []
+interactiveopt = [['i', 'interactive', None, _('use interactive mode')]]
 # This extension contains the following code
 #
 # - Extension Helper code