Commit f398b36d authored by Denis Laxalde's avatar Denis Laxalde

revert: indicate the default choice when prompting to forget files

parent 74013a831872
......@@ -3171,7 +3171,7 @@ def _performrevert(repo, parents, ctx, actions, interactive=False,
for f in actions['forget'][0]:
if interactive:
choice = repo.ui.promptchoice(
_("forget added file %s (yn)?$$ &Yes $$ &No") % f)
_("forget added file %s (Yn)?$$ &Yes $$ &No") % f)
if choice == 0:
repo.dirstate.drop(f)
else:
......
......@@ -424,14 +424,14 @@ Check the experimental config to invert the selection:
> n
> EOF
forgetting newfile
forget added file newfile (yn)? n
forget added file newfile (Yn)? n
$ hg status
A newfile
$ hg revert -i <<EOF
> y
> EOF
forgetting newfile
forget added file newfile (yn)? y
forget added file newfile (Yn)? y
$ hg status
? newfile
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment