2011-06-10 15:38:59 +02:00
|
|
|
|
|
|
|
# Mercurial
|
2012-01-05 23:39:13 +01:00
|
|
|
alias hgc='hg commit'
|
|
|
|
alias hgb='hg branch'
|
2011-06-10 15:38:59 +02:00
|
|
|
alias hgba='hg branches'
|
|
|
|
alias hgco='hg checkout'
|
|
|
|
alias hgd='hg diff'
|
|
|
|
alias hged='hg diffmerge'
|
|
|
|
# pull and update
|
2012-01-05 23:39:13 +01:00
|
|
|
alias hgl='hg pull -u'
|
|
|
|
alias hgp='hg push'
|
|
|
|
alias hgs='hg status'
|
2011-06-10 15:38:59 +02:00
|
|
|
# this is the 'git commit --amend' equivalent
|
|
|
|
alias hgca='hg qimport -r tip ; hg qrefresh -e ; hg qfinish tip'
|
2012-10-05 22:27:05 +02:00
|
|
|
|
|
|
|
function hg_current_branch() {
|
|
|
|
if [ -d .hg ]; then
|
|
|
|
echo hg:$(hg branch)
|
|
|
|
fi
|
|
|
|
}
|