##// END OF EJS Templates
revert: indicate the default choice when prompting to forget files
Denis Laxalde -
r30531:841092fd default
parent child Browse files
Show More
@@ -3171,7 +3171,7 b' def _performrevert(repo, parents, ctx, a'
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:
@@ -424,14 +424,14 b' Check the experimental config to invert '
424 > n
424 > n
425 > EOF
425 > EOF
426 forgetting newfile
426 forgetting newfile
427 forget added file newfile (yn)? n
427 forget added file newfile (Yn)? n
428 $ hg status
428 $ hg status
429 A newfile
429 A newfile
430 $ hg revert -i <<EOF
430 $ hg revert -i <<EOF
431 > y
431 > y
432 > EOF
432 > EOF
433 forgetting newfile
433 forgetting newfile
434 forget added file newfile (yn)? y
434 forget added file newfile (Yn)? y
435 $ hg status
435 $ hg status
436 ? newfile
436 ? newfile
437
437
General Comments 0
You need to be logged in to leave comments. Login now