Home » Questions » Computers [ Ask a new question ]

Blocking write-access to a specific branch in a single mercurial repository

Blocking write-access to a specific branch in a single mercurial repository

Is it possible to write some manner of hook in mercurial that will reject changesets that effect a specific named branch in a repository?

Asked by: Guest | Views: 229
Total answers/comments: 1
Guest [Entry]

"It looks like you could do this with pretxnchangegroup or pretxncommit, but you'd have to do the legwork (poking into the changesets and finding out which branch they affect) yourself.

See the Mercurial book section on hooks"