Source

home / .hgrc

# -*- coding:utf-8; mode:conf; -*-
# hgrc

[ui]
username = Takumi IINO <trot.thunder@gmail.com>
ignore = $HOME/.mercurial/hgignore

[extensions]
churn =
color =
convert =
eol =
extdiff =
histedit =
mq =
pager =
parentrevspec =
progress =
rebase =
record =
schemes =
transplant =

[alias]
_status = status
st = ! $HG _status $($HG root) $HG_ARGS
# misc
cm = commit --message
. = summary
: = st
h = help

# branch
b = branch
bs = branches -a

# log
l = log
lb = log -b
show = log --color=always -pr
less = log -pr "reverse(not merge())"
glog = log --graph
gl = glog
gll = glog --limit

# shortlog
shortlog  = log  --template '\033[31m{rev}:{node|short}\033[m | {date|shortdate} | {author|user}: {desc|strip|firstline}\n'
gshortlog = glog --template '\033[31m{rev}:{node|short}\033[m | {date|shortdate} | {author|user}: {desc|strip|firstline}\n\033[36m{branches}\033[m\n'

# locate
#grepfile = ! $HG locate --print0 | xargs --null grep $@
gf = grepfile

# resolve
mark = resolve -m
unmark = resolve -u
conflicts = resolve -l
uselocal = resolve --tool internal:local
useother = resolve --tool internal:other

# pull & push
nudge = push --rev .
push = ! echo -e "\033[31m(use 'hg nudge' to push changesets)\033[m"

# mq
qi = qimport
qr = qrefresh
qf = qfinish
qls = qseries --summary
qst = status --change qtip
qdrag = qpush --move

# power of commit
poc = churn -t '{author|email}' -c

qnow = ! $HG qnew $(date +'%Y-%m-%d_%H-%M-%S.diff') -m "[from now] $(date +'%Y-%m-%d %H:%M:%S')" $@

[pager]
pager = LESS='FRX' less
attend = annotate, cat, diff, export, glog, log, qdiff, help, show, shortlog, gshortlog, less

[diff]
git = True

[mq]
secret = True

# include settings
%include $HOME/.mercurial/extensions.rc
%include $HOME/.mercurial/hooks.rc
%include $HOME/.mercurial/araxis.rc
%include $HOME/.mercurial/local.rc
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.