teloon
10/16/2013 - 9:48 PM

The -C flag tells the update command to discard all local changes before updating. However, this might still leave untracked files in your

The -C flag tells the update command to discard all local changes before updating.

However, this might still leave untracked files in your repository. It sounds like you want to get rid of those as well, so I would use the purge extension for that:

hg pull
hg update -r MY_BRANCH -C
hg purge