]> ruderich.org/simon Gitweb - config/dotfiles.git/blob - hgrc.m4
febdc0b6d7d41bf8a8cc052cdd8a7cbc31050e1c
[config/dotfiles.git] / hgrc.m4
1 # This is the Mercurial configuration file.
2
3 # Copyright (C) 2011-2012  Simon Ruderich
4 #
5 # This file is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation, either version 3 of the License, or
8 # (at your option) any later version.
9 #
10 # This file is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with this file.  If not, see <http://www.gnu.org/licenses/>.
17
18
19 dnl Load m4 macros.
20 include(../lib.m4)
21
22 [ui]
23 username = Simon Ruderich <simon@ruderich.org>
24 # Use Apple's FileMerge for merge conflicts.
25 merge = opendiff-merge
26
27 # Use git diffs with support for renames, binaries, access rights, etc.
28 [diff]
29 git = True
30
31 [extensions]
32 # Convert other vcs to mercurial.
33 hgext.convert =
34 # Simplify pull and merge processes.
35 hgext.fetch =
36 # Log output similar to hg view but as ASCII.
37 hgext.graphlog =
38 # Enable hg view.
39 hgext.hgk =
40 # Patch stack support.
41 hgext.mq =
42 # Use a pager for all output.
43 hgext.pager =
44 # Partial commit utility.
45 hgext.record =
46 # Allows cherry-picking and rebasing.
47 hgext.transplant =
48
49 # Necessary for hg view.
50 [hgk]
51 IF(OS, debian)
52 path = /usr/share/mercurial/hgk
53 FI
54 IF(OS, darwin)
55 path = /opt/local/share/mercurial/contrib/hgk
56 FI
57
58 [hooks]
59 # Precommit hook which runs tests if they exist.
60 precommit = precommit-runtests
61 # Prevent "hg pull" if MQ patches are applied.
62 prechangegroup.mq-no-pull = ! hg qtop > /dev/null 2>&1
63 # Prevent "hg push" if MQ patches are applied.
64 preoutgoing.mq-no-push = ! hg qtop > /dev/null 2>&1
65
66 # Use colordiff and less as pager so that output from diff is colored and
67 # everything is easily readable in a terminal.
68 [pager]
69 pager = colordiff | less
70 ignore = record, qrecord, view, clone
71
72 # vim: ft=cfg