The naming convention of branches in our current code (mercurial-based) does not match the semantic ordering expected by auto-merge. As I understand it, there is currently no way to change that ordering (at least from the UI).
Questions:
(1) Would it be possible to write a plugin to control the ordering of the branches during auto-merge?
(2) If the answer to (1) is negative, how difficult would it be to write a plugin to perform the auto-merge in the way we need? [I looked at the stash auto merge plugin, which looks quite complicated, and I am not sure how much needs to change to make it work as a (new) bitbucket plugin...]