title: Prevent mercurial push during a jenkins build
body: <p>I have a jenkins job that runs some tests on a mercurial repo, and if successful tags the local repo with a 'stable' tag and then pushes this back to the main repo. The issue I'm having is that if someone pushes changesets while the build is running, then I cannot push the 'stable' tag.</p>
  
  <p>I was wondering if there was a way to set the remote repo to read-only while the build is running, then make it 'push-able' once the build finishes?</p>
  
  <p>Thanks,
  Vackar</p>