2011-06-10 13:38:59 +00:00
|
|
|
# Mercurial
|
2012-01-05 22:39:13 +00:00
|
|
|
alias hgc='hg commit'
|
|
|
|
alias hgb='hg branch'
|
2011-06-10 13:38:59 +00:00
|
|
|
alias hgba='hg branches'
|
2013-04-09 10:11:51 +00:00
|
|
|
alias hgbk='hg bookmarks'
|
2011-06-10 13:38:59 +00:00
|
|
|
alias hgco='hg checkout'
|
|
|
|
alias hgd='hg diff'
|
|
|
|
alias hged='hg diffmerge'
|
|
|
|
# pull and update
|
2013-03-11 10:24:12 +00:00
|
|
|
alias hgi='hg incoming'
|
2013-06-07 21:36:07 +00:00
|
|
|
alias hgic='hg incoming | grep "changeset" | wc -l'
|
2012-01-05 22:39:13 +00:00
|
|
|
alias hgl='hg pull -u'
|
2013-03-27 06:16:46 +00:00
|
|
|
alias hglr='hg pull --rebase'
|
2013-03-11 10:24:12 +00:00
|
|
|
alias hgo='hg outgoing'
|
2013-06-07 21:36:07 +00:00
|
|
|
alias hgoc='hg outgoing | grep 'changeset' | wc -l'
|
2012-01-05 22:39:13 +00:00
|
|
|
alias hgp='hg push'
|
|
|
|
alias hgs='hg status'
|
2011-06-10 13:38:59 +00:00
|
|
|
# this is the 'git commit --amend' equivalent
|
|
|
|
alias hgca='hg qimport -r tip ; hg qrefresh -e ; hg qfinish tip'
|
2012-10-05 20:27:05 +00:00
|
|
|
|
|
|
|
function hg_current_branch() {
|
|
|
|
if [ -d .hg ]; then
|
|
|
|
echo hg:$(hg branch)
|
|
|
|
fi
|
2013-03-11 10:24:12 +00:00
|
|
|
}
|