prathmesh.kallurkar
prathmesh.kallurkar

Reputation: 5696

hg force update to new files

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.

Upvotes: 39

Views: 39297

Answers (1)

Sedat Kapanoglu
Sedat Kapanoglu

Reputation: 47690

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.

Upvotes: 73

Related Questions