comparison mercurial/cmdutil.py @ 30531:841092fd6b85

revert: indicate the default choice when prompting to forget files
author Denis Laxalde <denis.laxalde@logilab.fr>
date Fri, 25 Nov 2016 09:09:31 +0100
parents 74013a831872
children 66b162fa3ffa
comparison
equal deleted inserted replaced
30530:74013a831872 30531:841092fd6b85
3169 3169
3170 audit_path = pathutil.pathauditor(repo.root) 3170 audit_path = pathutil.pathauditor(repo.root)
3171 for f in actions['forget'][0]: 3171 for f in actions['forget'][0]:
3172 if interactive: 3172 if interactive:
3173 choice = repo.ui.promptchoice( 3173 choice = repo.ui.promptchoice(
3174 _("forget added file %s (yn)?$$ &Yes $$ &No") % f) 3174 _("forget added file %s (Yn)?$$ &Yes $$ &No") % f)
3175 if choice == 0: 3175 if choice == 0:
3176 repo.dirstate.drop(f) 3176 repo.dirstate.drop(f)
3177 else: 3177 else:
3178 excluded_files.append(repo.wjoin(f)) 3178 excluded_files.append(repo.wjoin(f))
3179 else: 3179 else: