mercurial.plugin.zsh 537 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
alias hgba='hg branches'
6
alias hgbk='hg bookmarks'
ptrv's avatar
ptrv committed
7
8
9
10
alias hgco='hg checkout'
alias hgd='hg diff'
alias hged='hg diffmerge'
# pull and update
11
alias hgi='hg incoming'
12
alias hgl='hg pull -u'
13
alias hglr='hg pull --rebase'
14
alias hgo='hg outgoing'
15
16
alias hgp='hg push'
alias hgs='hg status'
ptrv's avatar
ptrv committed
17
18
# this is the 'git commit --amend' equivalent
alias hgca='hg qimport -r tip ; hg qrefresh -e ; hg qfinish tip'
19
20
21
22
23

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