I never use those .orig files, and I hate cleaning them up manually. Is there a way to configure hg revert to use the --no-backups option by default? I can’t find it in the Mercurial manual
Using a shell alias is possible but isn’t desirable.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can create an alias in your config file.
More details on the config file at http://www.selenic.com/mercurial/hgrc.5.html
Read the manual myself, and it looks like its changed somewhat since the last time I read it. I was going to suggest using defaults, but it appears that has been deprecated. The recommendation is to use aliases.
It appears an alias CAN override a built-in command, but obviously they don’t recommend it.
So, you could do
but the recommendation would be to create a new command for yourself