about summary refs log tree commit diff
path: root/Functions/VCS_Info/Backends/VCS_INFO_detect_hg
blob: 41fcc4b4c57401fae4f7c23bb18cd3d8bf1f270d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
## vim:ft=zsh
## mercurial support by: Frank Terbeck <ft@bewatermyfriend.org>
## Distributed under the same BSD-ish license as zsh itself.

setopt localoptions NO_shwordsplit

[[ $1 == '--flavours' ]] && return 1

VCS_INFO_check_com ${vcs_comm[cmd]} || return 1
vcs_comm[detect_need_file]=branch
VCS_INFO_bydir_detect '.hg'
return $?