summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2014-09-27 12:13:21 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2014-09-27 12:13:22 +0200
commit8f418475f557ad0509e35a730e00f97e2fc888d5 (patch)
tree8df0319395225ac42e4bc7656ab615e175438e16
parente067c58503f8bb0b1f9b49602f052eecf27b5271 (diff)
downloaddotfiles-8f418475f557ad0509e35a730e00f97e2fc888d5.tar.gz
dotfiles-8f418475f557ad0509e35a730e00f97e2fc888d5.tar.bz2
dotfiles-8f418475f557ad0509e35a730e00f97e2fc888d5.zip
[zsh] Remove old VCS stuff
-rw-r--r--.zsh/functions/VCS_INFO_get_data_bzr33
-rw-r--r--.zsh/functions/VCS_INFO_get_data_hg76
2 files changed, 0 insertions, 109 deletions
diff --git a/.zsh/functions/VCS_INFO_get_data_bzr b/.zsh/functions/VCS_INFO_get_data_bzr
deleted file mode 100644
index 374988a..0000000
--- a/.zsh/functions/VCS_INFO_get_data_bzr
+++ /dev/null
@@ -1,33 +0,0 @@
-## vim:ft=zsh
-## bazaar support by: Frank Terbeck <ft@bewatermyfriend.org>
-## Distributed under the same BSD-ish license as zsh itself.
-
-## Modified by René 'Necoro' Neumann <necoro@necoro.net>
-
-setopt localoptions noksharrays extendedglob NO_shwordsplit
-local bzrbase bzrbr
-local -a bzrinfo
-local bzrunstaged
-
-if zstyle -t ":vcs_info:${vcs}:${usercontext}:${rrn}" "use-simple" ; then
- bzrbase=${vcs_comm[basedir]}
- bzrinfo[2]=${bzrbase:t}
- if [[ -f ${bzrbase}/.bzr/branch/last-revision ]] ; then
- bzrinfo[1]=$(< ${bzrbase}/.bzr/branch/last-revision)
- bzrinfo[1]=${${bzrinfo[1]}%% *}
- fi
-else
- bzrbase=${${(M)${(f)"$( ${vcs_comm[cmd]} info )"}:# ##branch\ root:*}/*: ##/}
- bzrinfo=( ${${${(M)${(f)"$( ${vcs_comm[cmd]} version-info )"}:#(#s)(revno|branch-nick)*}/*: /}/*\//} )
- bzrbase="$(VCS_INFO_realpath ${bzrbase})"
-
- if zstyle -t ":vcs_info:${vcs}:${usercontext}:${rrn}" "check-for-changes" ; then
- [[ -n $(${vcs_comm[cmd]} status -S -V 2> /dev/null) && $? == 0 ]] && bzrunstaged=1
- fi
-fi
-
-rrn=${bzrbase:t}
-zstyle -s ":vcs_info:${vcs}:${usercontext}:${rrn}" branchformat bzrbr || bzrbr="%b:%r"
-zformat -f bzrbr "${bzrbr}" "b:${bzrinfo[2]}" "r:${bzrinfo[1]}"
-VCS_INFO_formats '' "${bzrbr}" "${bzrbase}" '' "${bzrunstaged}" "${bzrinfo[1]}" ''
-return 0
diff --git a/.zsh/functions/VCS_INFO_get_data_hg b/.zsh/functions/VCS_INFO_get_data_hg
deleted file mode 100644
index d92d83a..0000000
--- a/.zsh/functions/VCS_INFO_get_data_hg
+++ /dev/null
@@ -1,76 +0,0 @@
-## 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
-local file hgbranch hgbranch_name hgbase hghash hglrev hgmisc r_branch r_info revformat
-local hgunstaged
-
-VCS_INFO_hg_get_mq_top_patch () {
- local patchdir=$1
-
- if [[ -e "${patchdir}/status" ]]; then
- local -a patches
- patches=(${(f)"$(< "${patchdir}/status")"})
- printf "%s" "${patches[-1]/[^:]*:/}"
- return 0
- fi
-
- return 1
-}
-
-
-hgbase=${vcs_comm[basedir]}
-rrn=${hgbase:t}
-
-file="${hgbase}/.hg/branch"
-if [[ -r ${file} ]] ; then
- hgbranch_name=$(< ${file})
-else
- hgbranch_name="default"
-fi
-
-hghash=''
-hglrev=''
-if zstyle -t ":vcs_info:${vcs}:${usercontext}:${rrn}" get-revision ; then
- # Calling the 'hg' program is quite a bit too slow for prompts.
- # If there's a way around that, I'd be interested.
- # Disabled by default anyway, so no harm done.
-
- HGRCPATH="/dev/null" ${vcs_comm[cmd]} branches \
- | while read -r r_branch r_info ; do
- if [[ ${r_branch} == ${hgbranch_name} ]] ; then
- match=()
- : ${r_info/(#b)([^:]##):(*)}
- hglrev=${match[1]}
- hghash=${match[2]}
- break
- fi
- done
-
- if [[ -n ${hglrev} ]] ; then
- zstyle -s ":vcs_info:${vcs}:${usercontext}:${rrn}" hgrevformat revformat || revformat="%r:%h"
- zformat -f hglrev "${revformat}" "r:${hglrev}" "h:${hghash}"
- zstyle -s ":vcs_info:${vcs}:${usercontext}:${rrn}" branchformat hgbranch || hgbranch="%b:%r"
- zformat -f hgbranch "${hgbranch}" "b:${hgbranch_name}" "r:${hglrev}"
- fi
-
- if zstyle -t ":vcs_info:${vcs}:${usercontext}:${rrn}" "check-for-changes" ; then
- [[ -n $(${vcs_comm[cmd]} status -q 2> /dev/null) ]] && hgunstaged=1
- fi
-else
- hgbranch="${hgbranch_name}"
-fi
-
-local patchdir=${hgbase}/.hg/patches/
-
-if [[ -d $patchdir ]] ; then
- hgmisc=$(VCS_INFO_hg_get_mq_top_patch "${patchdir}")
-
- hgmisc=${hgmisc:-"no patch applied"}
-else
- hgmisc=''
-fi
-
-VCS_INFO_formats '' "${hgbranch}" "${hgbase}" '' "${hgunstaged}" "${hglrev}" "${hgmisc}"
-return 0