While you work with hg and do rebase, merge, hg saves original files. Some day your project will contain lots of rubbish files. Here is some multiplatform solution.
- Enable purge extension in mercurial.
- Open ~/.hgrc (Linux, Windows) or mercurial.ini on Windows system.
- Add to extensions section purge plugin:
[extensions] purge = - In terminal select project folder and run next command:
hg purge -I **/*.orig --all To test command without deleting files, add --print flag.