Skip to content

Instantly share code, notes, and snippets.

@LSTANCZYK
Forked from kaineer/mercurial.md
Last active August 29, 2015 14:15
Show Gist options
  • Save LSTANCZYK/0840d7b75853f949c82c to your computer and use it in GitHub Desktop.
Save LSTANCZYK/0840d7b75853f949c82c to your computer and use it in GitHub Desktop.

.hgrc

  • Add your name/email to config
[ui]
username = John Doe <[email protected]>
  • Remove external merge tools
[ui]
merge = internal:merge
  • Some of my aliases
[alias]
lg = log --template "\033[31m{rev}:{node|short}\033[0m \033[1m{branch}\033[0m {desc|firstline} \033[32m({date|age})\033[0m \033[33m[{author|person}]\033[0m\n"
hist = log --template "\033[31m{rev}:{node|short}\033[0m \033[1m{branch}\033[0m {desc|firstline} \033[32m({date|age})\033[0m \033[33m[{author|person}]\033[0m\n"
today = log --template "** {desc|firstline} [{node|short}]\n" --date "-1" --user username
week = log --template "** ({date|age}) {desc|firstline} [{node|short}]\n" --date "-7" --user username

$PROJECT/.hg/hgrc

  • Add default external repo
[paths]
default = ssh://[email protected]/username/projectname
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment