comparison mercurial/crecord.py @ 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 7c4e205f71ca
children 82d9728ace95
comparison
equal deleted inserted replaced
41699:5d63cb7d8f83 41700:1f44bfab0fff
1544 When the amend flag is set, a commit will modify the most recently 1544 When the amend flag is set, a commit will modify the most recently
1545 committed changeset, instead of creating a new changeset. Otherwise, a 1545 committed changeset, instead of creating a new changeset. Otherwise, a
1546 new changeset will be created (the normal commit behavior). 1546 new changeset will be created (the normal commit behavior).
1547 """ 1547 """
1548 1548
1549 try: 1549 if opts.get('amend') is None:
1550 ver = float(util.version()[:3])
1551 except ValueError:
1552 ver = 1
1553 if ver < 2.19:
1554 msg = _("The amend option is unavailable with hg versions < 2.2\n\n"
1555 "Press any key to continue.")
1556 elif opts.get('amend') is None:
1557 opts['amend'] = True 1550 opts['amend'] = True
1558 msg = _("Amend option is turned on -- committing the currently " 1551 msg = _("Amend option is turned on -- committing the currently "
1559 "selected changes will not create a new changeset, but " 1552 "selected changes will not create a new changeset, but "
1560 "instead update the most recently committed changeset.\n\n" 1553 "instead update the most recently committed changeset.\n\n"
1561 "Press any key to continue.") 1554 "Press any key to continue.")