]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - hgrc
Use graphlog extension to log output similar to hg view but as ASCII.
[config/dotfiles.git] / hgrc
diff --git a/hgrc b/hgrc
index 0b581560f8959dafc32ed27dcefa816d5b2bb896..fb4cff68e9b91095c1b03b733b5e12b16741fdb2 100644 (file)
--- a/hgrc
+++ b/hgrc
@@ -2,20 +2,47 @@
 
 
 [ui]
-username = Simon Ruderich <simon@ruderich.com>
+username = Simon Ruderich <simon@ruderich.org>
+ignore = ~/.hgignore
+# Use Apple's FileMerge for merge conflicts.
+merge = opendiff-merge
+
+# 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 =
-# 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 = /opt/local/share/mercurial/contrib/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