contrib/vim/hgcommand.vim
changeset 3528 bf48ca46139b
parent 2759 19436facb073
child 3532 04d44c3d64f7
equal deleted inserted replaced
3527:ee6b8de6df3c 3528:bf48ca46139b
   370       let revision="DELETED"
   370       let revision="DELETED"
   371     elseif match(statustext, '^[A]') >= 0
   371     elseif match(statustext, '^[A]') >= 0
   372       let revision="ADDED"
   372       let revision="ADDED"
   373     else
   373     else
   374       " The file is tracked, we can try to get is revision number
   374       " The file is tracked, we can try to get is revision number
   375       let hgCommand = <SID>HGGetOption("HGCommandHGExec", "hg") . " parents -b  "
   375       let hgCommand = <SID>HGGetOption("HGCommandHGExec", "hg") . " parents "
   376       let statustext=system(hgCommand)
   376       let statustext=system(hgCommand)
   377       if(v:shell_error)
   377       if(v:shell_error)
   378           return ""
   378           return ""
   379       endif
   379       endif
   380       let revision=substitute(statustext, '^changeset:\s*\(\d\+\):.*\_$\_.*$', '\1', "")
   380       let revision=substitute(statustext, '^changeset:\s*\(\d\+\):.*\_$\_.*$', '\1', "")