X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=hgrc;h=4a540474918680d0413cdb294741d50232a3f55a;hb=89f35ec9b36aa9288182916db92cd4ee5a4826d0;hp=25860a77f8cd37b44a388ce764ff7f2eb365d29b;hpb=05048fade2bb0f0f5a0ca656a76269849e25dab7;p=config%2Fdotfiles.git diff --git a/hgrc b/hgrc index 25860a7..4a54047 100644 --- a/hgrc +++ b/hgrc @@ -22,6 +22,8 @@ hgext.hgk = hgext.mq = # Partial commit utility. hgext.record = +# Allows cherry-picking and rebasing. +hgext.transplant = # Necessary for hg view. [hgk] @@ -30,3 +32,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