mercurial.plugin.zsh 640 Bytes
Newer Older
ptrv's avatar
ptrv committed
1
# Mercurial
2
3
alias hgc='hg commit'
alias hgb='hg branch'
ptrv's avatar
ptrv committed
4
alias hgba='hg branches'
5
alias hgbk='hg bookmarks'
ptrv's avatar
ptrv committed
6
7
8
9
alias hgco='hg checkout'
alias hgd='hg diff'
alias hged='hg diffmerge'
# pull and update
10
alias hgi='hg incoming'
11
alias hgic='hg incoming | grep "changeset" | wc -l'
12
alias hgl='hg pull -u'
13
alias hglr='hg pull --rebase'
14
alias hgo='hg outgoing'
15
alias hgoc='hg outgoing | grep 'changeset' | wc -l'
16
17
alias hgp='hg push'
alias hgs='hg status'
ptrv's avatar
ptrv committed
18
19
# this is the 'git commit --amend' equivalent
alias hgca='hg qimport -r tip ; hg qrefresh -e ; hg qfinish tip'
20
21
22
23
24

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