I am using hg version 1.9.1. Problem is whenever I use hg update, I get an option of updating changed files. Do we have an option for forcefully updating all files to their new versions in the latest commit. Sorry but i did not find any useful information in hg manual.
Use -C/--clean to reset the working directory branch to that of the parent of the working directory, negating a previous branch change. Use the command hg update to switch to an existing branch.
If you are using the terminal in windows add hg status --rev x:y > your-file. txt to save the list to a file. To only see changes in the current directory: hg status --rev x:y .
hg update --clean
This will update your working directory with the newest version of files in the current branch. Please note that this command will discard all existing changes in your working directory.
If you meant "can I get a fresh copy of each and every file from the repository" just delete all files in your working directory and do a hg update --clean
again.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With