]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
Added hooks to prevent pushing and pulling if MQ patches are applied.
authorSimon Ruderich <simon@ruderich.com>
Fri, 29 Aug 2008 19:13:09 +0000 (21:13 +0200)
committerSimon Ruderich <simon@ruderich.org>
Fri, 29 Aug 2008 19:13:09 +0000 (21:13 +0200)
hgrc

diff --git a/hgrc b/hgrc
index 25860a77f8cd37b44a388ce764ff7f2eb365d29b..a7c43c9b4114dcd6752268e4fd7d761c42717392 100644 (file)
--- 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