Slava
Slava

Reputation: 3505

Tortoisehg force code review step mandatory

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

Answers (1)

michel-slm
michel-slm

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

Related Questions