We are using Bamboo and Plan Branching to manage our feature-branch and release cycle.
Synopsis (in case your curious) Essentially, whenever a commit is pushed on a feature branch, Bamboo kicks in and merges the development trunk to the branch to confirm the developer has broken anyone else's accepted (approved via pull request) commits that are in the development trunk.
However, even if a developer closes the branch, or the pull-request approver closes the branch, bamboo kicks in an creates a final merge commit
thus re-opening the branch. This has created a lot of clutter in the source-control as people forget to manually go back and close their branches again (as they've already closed them).
I wanted to pipe together some commands to script the closing of any branch that hasn't been committed too say in the last 5 days? Or perhaps prior to a revision number?
hg log
, hg status
, or hg log --template "{date|localdate|rfc822date}\n"
Seem promising, but I'm sure someone has to have concatenated a few calls?
Or if there is a way to add some instruction to Mercurial that would be great as well!