You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
511 B
23 lines
511 B
|
|
# 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 hgi='hg incoming' |
|
alias hgl='hg pull -u' |
|
alias hglr='hg pull --rebase' |
|
alias hgo='hg outgoing' |
|
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 |
|
}
|
|
|