Skip to content

Instantly share code, notes, and snippets.

@nfreear
Created May 10, 2012 14:12
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save nfreear/2653247 to your computer and use it in GitHub Desktop.
Save nfreear/2653247 to your computer and use it in GitHub Desktop.
Mercurial.ini / .hgrc - HG configuration file
# Mercurial configuration.
[http_proxy]
#host = wwwcache.open.ac.uk:80
[ui]
username = Nick Freear <ME@example.org>
# Editor - I'll use vi for now!
;;editor = /Applications/TextWrangler.app/Contents/MacOS/TextWrangler
[extensions]
# Bundled extensions.
hgext.convert=
#convert=
progress =
color =
;;keyword =
# External extensions.
hgext.bookmarks =
hggit = /Users/Nick/workspace/hg-git/hggit
[git]
intree = true
[alias]
# Like Git-describe (hg log -l 1 ..{rev}:)
describe = tip --template "{latesttag}-{latesttagdistance}-{node|short}\n"
[hooks]
;;update = hg parents >./hg-revision
;;Was: 'cloudengine2/..'
; update: Peace of mind (eg. Live server) - check every PHP file.
update = php ~/workspace/cloudengine/system/application/cli/update-hook.php
; pre-update, pre-commit: Speed - just check the files that changed, and assume a CI file-structure (I think).
pre-update=php ~/workspace/cloudengine/system/application/cli/lint.php --hgstatus --ci
pre-commit=php ~/workspace/cloudengine/system/application/cli/lint.php --hgstatus --ci
[ui]
ignore = ~/workspace/cloudengine/.hg/hgignore
[keywordmaps]
HGpath = {path}
HGdate = {date|rfc822date}
lastlog= {desc}
checked= {author}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment