VCS_INFO_hg_get_data () { # {{{ local hgbranch hgbase file hgbase=${vcs_comm[basedir]} file="${hgbase}/.hg/branch" if [[ -r ${file} ]] ; then hgbranch=$(< ${file}) else hgbranch='default' fi VCS_INFO_formats '' "${hgbranch}" "${hgbase}" return 0 }