[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#611175: zsh: VCS_INFO wrongly detects svn repositories

Package: zsh
Version: 4.3.6-6
Severity: normal
Tags: patch

Currently zshs VCS_INFO function wrongly detects svn repositories if an .svn directory exists
in the current path. Which also applies to home directories containing for example a ~/.svn/authors file.
Instead of checking only for the directory it would be smarter to check for an important svn repository file.
Like .svn/entries. Which is done through my patch. I suggest to check the other revison control systems as well.

-- System Information:
Debian Release: 5.0.8
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-2-xen-amd64 (SMP w/1 CPU core)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to de_DE.UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages zsh depends on:
ii  libc6                     2.7-18lenny7   GNU C Library: Shared libraries
ii  libcap2                   2.11-2         support for getting/setting POSIX.
ii  libncursesw5              5.7+20081213-1 shared libraries for terminal hand

Versions of packages zsh recommends:
ii  libpcre3                      7.6-2.1    Perl 5 Compatible Regular Expressi

Versions of packages zsh suggests:
pn  zsh-doc                       <none>     (no description available)

-- no debconf information
--- a/VCS_INFO_detect_svn	2011-01-26 12:47:33.010081966 +0100
+++ b/VCS_INFO_detect_svn	2011-01-26 12:46:50.800830005 +0100
@@ -7,5 +7,5 @@
 [[ $1 == '--flavours' ]] && return 1
 VCS_INFO_check_com ${vcs_comm[cmd]} || return 1
-[[ -d ".svn" ]] && return 0
+[[ -f ".svn/entries" ]] && return 0
 return 1

Reply to: