updated mercurial plugin

This commit is contained in:
Gregory Liras 2012-02-05 15:59:33 +02:00
commit 5f9a4373e6
2 changed files with 14 additions and 3 deletions

View file

@ -12,3 +12,9 @@ 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 current_branch_hg() {
ref=$(hg branch 2> /dev/null) || return
echo ${ref#refs/heads/}
}