From 830e22db801eafa7fe841595407066f712d71d4f Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Fri, 29 Aug 2008 21:13:09 +0200 Subject: [PATCH] Added hooks to prevent pushing and pulling if MQ patches are applied. --- hgrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hgrc b/hgrc index 25860a7..a7c43c9 100644 --- a/hgrc +++ b/hgrc @@ -30,3 +30,7 @@ path = /opt/local/share/mercurial/contrib/hgk [hooks] # Precommit hook which runs tests if they exist. precommit = precommit-runtests +# Prevent "hg pull" if MQ patches are applied. +prechangegroup.mq-no-pull = ! hg qtop > /dev/null 2>&1 +# Prevent "hg push" if MQ patches are applied. +preoutgoing.mq-no-push = ! hg qtop > /dev/null 2>&1 -- 2.44.2