mercurial.plugin.zsh 537 B

123456789101112131415161718192021222324
  1. # Mercurial
  2. alias hgc='hg commit'
  3. alias hgb='hg branch'
  4. alias hgba='hg branches'
  5. alias hgbk='hg bookmarks'
  6. alias hgco='hg checkout'
  7. alias hgd='hg diff'
  8. alias hged='hg diffmerge'
  9. # pull and update
  10. alias hgi='hg incoming'
  11. alias hgl='hg pull -u'
  12. alias hglr='hg pull --rebase'
  13. alias hgo='hg outgoing'
  14. alias hgp='hg push'
  15. alias hgs='hg status'
  16. # this is the 'git commit --amend' equivalent
  17. alias hgca='hg qimport -r tip ; hg qrefresh -e ; hg qfinish tip'
  18. function hg_current_branch() {
  19. if [ -d .hg ]; then
  20. echo hg:$(hg branch)
  21. fi
  22. }