Skip to content

Instantly share code, notes, and snippets.

@jgrgt
Created March 2, 2011 07:58
Show Gist options
  • Save jgrgt/850630 to your computer and use it in GitHub Desktop.
Save jgrgt/850630 to your computer and use it in GitHub Desktop.
hgrc
[defaults]
# suppress noisy extdiff header message
#cdiff = -q
#import = --no-commit
#backup = --merge
[hooks]
pretxncommit.crlf = python:hgext.win32text.forbidcrlf
# 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
[ui]
# CHANGE AND UNCOMMENT NEXT LINE
# username = Your Name <your.name@domain.com>
editor = /usr/bin/vim -c "r ~/.hgtemplate"
[extensions]
hgext.shelve = ~/local/hgext/hgshelve/hgshelve.py
hgext.pager =
hgext.highlight =
hgext.extdiff =
#hgext.histedit = ~/local/histedit
color =
#mq =
transplant =
hgext.graphlog =
fetch =
rebase =
hgext.mq =
bookmarks =
hgext.hgview = ~/local/hgext/hgview.py
[pager]
pager = less -R
attend = annotate, cat, df, diff, glog, help, in-diff, incoming, log, out-diff, outgoing, qdiff, show, tip, grep
[web]
pygments_style = trac
[web]
style = gitweb
[alias]
blame = annotate -u
out-diff = out -pvM
in-diff = in -pvM
show = log -p -v -r
[color]
# how it fits my terminal - YMMV
status.added = green
status.clean = white
status.copied = white
status.deleted = cyan
status.ignored = white
status.modified = magenta
status.removed = red
status.unknown = yellow
[hgmerge]
interactive = kdiff3
noninteractive = diff3
[extdiff]
cmd.kdiff3 =
[merge-tools]
kdiff3.args = $base $local $other -o $output
[bookmarks]
track.current = True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment