changeset 96:d7e81dc6998a

- fix small bug in last commit: don't toggle amend if version < 2.2 (too bad I alread pushed the bug, or I would have just used amend! ;)
author Mark Edgington <edgimar@gmail.com>
date Wed, 28 Nov 2012 13:05:45 -0500
parents f6c90dc7b5a1
children 1a1d114b56be
files crecord/chunk_selector.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/crecord/chunk_selector.py
+++ b/crecord/chunk_selector.py
@@ -989,7 +989,7 @@
         if ver < 2.19:
             msg = ("The amend option is unavailable with hg versions < 2.2\n\n"
                    "Press any key to continue.")
-        if opts.get('amend') is None:
+        elif opts.get('amend') is None:
             opts['amend'] = True
             msg = ("Amend option is turned on -- commiting the currently "
                    "selected changes will not create a new changeset, but "