I’m stumped trying to ensure that a deployment repository only updates a specific branch off the central Mercurial server.
Specifically I need to ensure that anyone pulling changes to the deployment repository is doing the equivalent of
hg pull -b deployment <central-repo-url>
rather than
hg pull <central-repo-url>
I assume I need to use the pre-pull hook, but I’m not sure how to do that.
Additionally, same technique, but more user-friendly way;
ACL extension, in which you define [acl.deny.branches] and [acl.allow.branches] for your workflow