##// END OF EJS Templates
histedit: add user input to warning message on editing tagged commits...
Navaneeth Suresh -
r41186:7b7e081f default
parent child Browse files
Show More
@@ -194,7 +194,6 b' except ImportError:'
194 194 import functools
195 195 import os
196 196 import struct
197 import time
198 197
199 198 from mercurial.i18n import _
200 199 from mercurial import (
@@ -1702,9 +1701,10 b' def _histedit(ui, repo, state, *freeargs'
1702 1701 if not hastags:
1703 1702 hastags = len(tags)
1704 1703 if hastags:
1705 ui.warn(_('warning: tags associated with the given changeset '
1706 'will be lost after histedit \n'))
1707 time.sleep(1)
1704 if ui.promptchoice(_('warning: tags associated with the given'
1705 ' changeset will be lost after histedit. \n'
1706 'do you want to continue (yN)? $$ &Yes $$ &No'), default=1):
1707 raise error.Abort(_('histedit cancelled\n'))
1708 1708 # rebuild state
1709 1709 if goal == goalcontinue:
1710 1710 state.read()
General Comments 0
You need to be logged in to leave comments. Login now