]> ruderich.org/simon Gitweb - config/dotfiles.git/blob - hgrc
Added hooks to prevent pushing and pulling if MQ patches are applied.
[config/dotfiles.git] / hgrc
1 # This is the Mercurial configuration file.
2
3
4 [ui]
5 username = Simon Ruderich <simon@ruderich.com>
6 ignore = ~/.hgignore
7 # Use Apple's FileMerge for merge conflicts.
8 merge = opendiff-merge
9
10 # Use git diffs with support for renames, binaries, access rights, etc.
11 [diff]
12 git = True
13
14 [extensions]
15 # Convert other vcs to mercurial.
16 hgext.convert =
17 # Simplify pull and merge processes.
18 hgext.fetch =
19 # Enable hg view.
20 hgext.hgk =
21 # Patch stack support.
22 hgext.mq =
23 # Partial commit utility.
24 hgext.record =
25
26 # Necessary for hg view.
27 [hgk]
28 path = /opt/local/share/mercurial/contrib/hgk
29
30 [hooks]
31 # Precommit hook which runs tests if they exist.
32 precommit = precommit-runtests
33 # Prevent "hg pull" if MQ patches are applied.
34 prechangegroup.mq-no-pull = ! hg qtop > /dev/null 2>&1
35 # Prevent "hg push" if MQ patches are applied.
36 preoutgoing.mq-no-push = ! hg qtop > /dev/null 2>&1