changeset 41700:1f44bfab0fff

crecord: remove obsolete version check An internal function shouldn't be checking compatibility with Mercurial versions.
author Jordi Gutiérrez Hermoso <jordigh@octave.org>
date Thu, 14 Feb 2019 10:41:47 -0500
parents 5d63cb7d8f83
children df1f3ba56157
files mercurial/crecord.py
diffstat 1 files changed, 1 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/crecord.py	Wed Feb 13 16:02:44 2019 -0500
+++ b/mercurial/crecord.py	Thu Feb 14 10:41:47 2019 -0500
@@ -1546,14 +1546,7 @@
         new changeset will be created (the normal commit behavior).
         """
 
-        try:
-            ver = float(util.version()[:3])
-        except ValueError:
-            ver = 1
-        if ver < 2.19:
-            msg = _("The amend option is unavailable with hg versions < 2.2\n\n"
-                    "Press any key to continue.")
-        elif opts.get('amend') is None:
+        if opts.get('amend') is None:
             opts['amend'] = True
             msg = _("Amend option is turned on -- committing the currently "
                     "selected changes will not create a new changeset, but "