# HG changeset patch # User Nicolas Chauvat # Date 1265973187 -3600 # Node ID 23201259ffeb42a1f088d70e988a9043a1daa40a # Parent 2832da80d9b7af28a104e9a5fa2e4bd94668e21d [migration] abort becomes possible when asked for confirmation before migration script diff -r 2832da80d9b7 -r 23201259ffeb migration.py --- a/migration.py Wed Feb 10 15:49:20 2010 +0100 +++ b/migration.py Fri Feb 12 12:13:07 2010 +0100 @@ -70,8 +70,11 @@ ability to show the script's content """ while True: - answer = ASK.ask('Execute %r ?' % scriptpath, ('Y','n','show'), 'Y') - if answer == 'n': + answer = ASK.ask('Execute %r ?' % scriptpath, + ('Y','n','show','abort'), 'Y') + if answer == 'abort': + raise SystemExit(1) + elif answer == 'n': return False elif answer == 'show': stream = open(scriptpath)