mercurial.plugin.zsh 432 Bytes
Newer Older
ptrv's avatar
ptrv committed
1
2

# Mercurial
3
4
alias hgc='hg commit'
alias hgb='hg branch'
ptrv's avatar
ptrv committed
5
6
7
8
9
alias hgba='hg branches'
alias hgco='hg checkout'
alias hgd='hg diff'
alias hged='hg diffmerge'
# pull and update
10
11
12
alias hgl='hg pull -u'
alias hgp='hg push'
alias hgs='hg status'
ptrv's avatar
ptrv committed
13
14
# this is the 'git commit --amend' equivalent
alias hgca='hg qimport -r tip ; hg qrefresh -e ; hg qfinish tip'
15
16
17
18
19
20

function hg_current_branch() {
  if [ -d .hg ]; then
    echo hg:$(hg branch)
  fi
}