[Pkg-zsh-devel] Bug#611175: PATCH: Fix for vcs_info's svn detection
Frank Terbeck
ft at bewatermyfriend.org
Fri Feb 11 06:47:03 UTC 2011
Let's try this again, shall we? Apparently, it's harder to use an email
client than it looks. Also, as Mikael informs me on IRC, I screwed up
the patch in the first mail... *sigh*
...now that CVS is back...
Here's a fix for an issue with vcs_info's subversion detection, which
was reported in the debian BTS (issue #611175¹).
The fix was suggested by Lennart Weller.
¹ <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D611175>
Regards, Frank
Index: Functions/VCS_Info/Backends/VCS_INFO_detect_svn
===================================================================
RCS file: /cvsroot/zsh/zsh/Functions/VCS_Info/Backends/VCS_INFO_detect_svn,v
retrieving revision 1.2
diff -u -r1.2 VCS_INFO_detect_svn
--- Functions/VCS_Info/Backends/VCS_INFO_detect_svn 11 Dec 2008 09:53:13 -0000 1.2
+++ Functions/VCS_Info/Backends/VCS_INFO_detect_svn 11 Feb 2011 06:44:51 -0000
@@ -7,5 +7,5 @@
[[ $1 == '--flavours' ]] && return 1
VCS_INFO_check_com ${vcs_comm[cmd]} || return 1
-[[ -d ".svn" ]] && return 0
+{ [[ -f ".svn/entries" ]] || [[ -f ".svn/format" ]] } && return 0
return 1
More information about the Pkg-zsh-devel
mailing list