Reputation: 3505
our company is using Tortoisehg to push changes to Mercurial repository. I installed Review Board and is able to create code review request, but still can push changes without code review. How make this step mandatory?
Upvotes: 0
Views: 157
Reputation: 9756
You can create a pretxnchangegroup
hook that checks if the commit in question has been reviewed, and if not, aborts the commit.
This example given in Programmers.SE is quite instructive (adjust to your situation as necessary).
Upvotes: 1