There are no hangs on the branch, but you can do this logic in the hook itself. For example, in hgrc :
[hooks] changeset = actions-by-branch.sh
and then in actions-by-branch.sh :
#!/bin/bash BRANCH=$(hg log --template '{branch}' -r $HG_NODE) BRANCH=${BRANCH:-default}
Note that I used a change set, not a changegroup hook. One group of changes can have a set of changes in several branches, which complicates the logic. If you decide to go this route, you need to loop from $HG_NODE all the way to tip in order to act on each set of changes in the change group.
Ry4an brase
source share