# HG changeset patch # User Mark Edgington # Date 1354125945 18000 # Node ID d7e81dc6998a4eea56c12c07f663b0f65dd66369 # Parent f6c90dc7b5a1abfd96f9579711a9f7302399c35b - 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! ;) diff --git a/crecord/chunk_selector.py b/crecord/chunk_selector.py --- 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 "