After running a manual merge operation, .orig files stay behind in the repository. Is there an option to enable "hg purge" to run after a merge operation to cleanup the repository?
Not at the moment, I actually have *.orig in my hgignore so I never see them and forget they're there, except when I do a bulk cleanup every so often. If it's bothering you you can quickly knock up a Custom Action to do it pretty easily (Preferences > Custom Actions)
Thanks for the quick response! I set up the custom action by doing the following:
1. Enabled the purge extension by adding the following to my .hgrc file
[extensions] purge =
2. Created the following Custom Action:
Script to run: hg
I bound it to a key and it works as a macro.
I have some suggestions for improvement
1) For custom actions, allow for an evented architecture so i can define when the custom actions run automatically (i.e., after a merge, on commit, etc...)
2) Enable purge as an option
By implementing the former improvement you open up the door to allow users to really extend the usability of the product without adding a lot of code. Hope this helps!
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs