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

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