]> ruderich.org/simon Gitweb - config/dotfiles.git/blob - hgrc.m4
e3ef39c1c2db75121b8b43278c109b3171b28386
[config/dotfiles.git] / hgrc.m4
1 # This is the Mercurial configuration file.
2
3
4 dnl Load m4 macros.
5 include(../lib.m4)
6
7 [ui]
8 username = Simon Ruderich <simon@ruderich.org>
9 ignore = HGIGNORE
10 # Use Apple's FileMerge for merge conflicts.
11 merge = opendiff-merge
12
13 # Use git diffs with support for renames, binaries, access rights, etc.
14 [diff]
15 git = True
16
17 [extensions]
18 # Convert other vcs to mercurial.
19 hgext.convert =
20 # Simplify pull and merge processes.
21 hgext.fetch =
22 # Log output similar to hg view but as ASCII.
23 hgext.graphlog =
24 # Enable hg view.
25 hgext.hgk =
26 # Patch stack support.
27 hgext.mq =
28 # Use a pager for all output.
29 hgext.pager =
30 # Partial commit utility.
31 hgext.record =
32 # Allows cherry-picking and rebasing.
33 hgext.transplant =
34
35 # Necessary for hg view.
36 [hgk]
37 IF(OS, debian)
38 path = /usr/share/mercurial/hgk
39 FI
40 IF(OS, darwin)
41 path = /opt/local/share/mercurial/contrib/hgk
42 FI
43
44 [hooks]
45 # Precommit hook which runs tests if they exist.
46 precommit = precommit-runtests
47 # Prevent "hg pull" if MQ patches are applied.
48 prechangegroup.mq-no-pull = ! hg qtop > /dev/null 2>&1
49 # Prevent "hg push" if MQ patches are applied.
50 preoutgoing.mq-no-push = ! hg qtop > /dev/null 2>&1
51
52 # Use colordiff and less as pager so that output from diff is colored and
53 # everything is easily readable in a terminal.
54 [pager]
55 pager = colordiff | less
56 ignore = record, qrecord, view, clone
57
58 # vim: ft=cfg