summaryrefslogtreecommitdiff
path: root/plugins/mercurial/mercurial.plugin.zsh
blob: a3a6ff8b65e42b49b9e59e5cb56c8b49f9563456 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

# Mercurial
alias hgc='hg commit'
alias hgb='hg branch'
alias hgba='hg branches'
alias hgco='hg checkout'
alias hgd='hg diff'
alias hged='hg diffmerge'
# pull and update
alias hgl='hg pull -u'
alias hgp='hg push'
alias hgs='hg status'
# this is the 'git commit --amend' equivalent
alias hgca='hg qimport -r tip ; hg qrefresh -e ; hg qfinish tip'

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