mercurial.plugin.zsh 481 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
alias hgi='hg incoming'
11
alias hgl='hg pull -u'
12
alias hgo='hg outgoing'
13
14
alias hgp='hg push'
alias hgs='hg status'
ptrv's avatar
ptrv committed
15
16
# this is the 'git commit --amend' equivalent
alias hgca='hg qimport -r tip ; hg qrefresh -e ; hg qfinish tip'
17
18
19
20
21

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