]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - hgrc
setup.sh: No need to convert hgrc with m4 anymore.
[config/dotfiles.git] / hgrc
diff --git a/hgrc b/hgrc
old mode 100755 (executable)
new mode 100644 (file)
index eb4ce3f..8807a90
--- a/hgrc
+++ b/hgrc
@@ -1,23 +1,65 @@
 # This is the Mercurial configuration file.
 
+# Copyright (C) 2011-2012  Simon Ruderich
+#
+# This file is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This file is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this file.  If not, see <http://www.gnu.org/licenses/>.
+
+
+dnl Load m4 macros.
+include(../lib.m4)
 
 [ui]
-username = Simon Ruderich <simon@ruderich.com>
+username = Simon Ruderich <simon@ruderich.org>
+
+# Use git diffs with support for renames, binaries, access rights, etc.
+[diff]
+git = True
 
-# Loads the listed extensions.
 [extensions]
-# convert other vcs to mercurial:
+# Convert other vcs to mercurial.
 hgext.convert =
-# simplify pull and merge processes:
+# Simplify pull and merge processes.
 hgext.fetch =
-# revision bug tracking test utility:
-hgext.hbisect =
-# patch stack support:
+# Log output similar to hg view but as ASCII.
+hgext.graphlog =
+# Enable hg view.
+hgext.hgk =
+# Patch stack support.
 hgext.mq =
-# partial commit utility:
+# Use a pager for all output.
+hgext.pager =
+# Partial commit utility.
 hgext.record =
+# Allows cherry-picking and rebasing.
+hgext.transplant =
+
+# Necessary for hg view.
+[hgk]
+path = /usr/share/mercurial/hgk
 
-# Hooks.
 [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
+
+# Use colordiff and less as pager so that output from diff is colored and
+# everything is easily readable in a terminal.
+[pager]
+pager = colordiff | less
+ignore = record, qrecord, view, clone
+
+# vim: ft=cfg