* PATCH: Fix for vcs_info's svn detection
@ 2011-02-11 6:47 Frank Terbeck
2011-02-11 15:07 ` Greg Klanderman
0 siblings, 1 reply; 2+ messages in thread
From: Frank Terbeck @ 2011-02-11 6:47 UTC (permalink / raw)
To: zsh-workers; +Cc: lhw, 611175, Phil Pennock
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: PATCH: Fix for vcs_info's svn detection
2011-02-11 6:47 PATCH: Fix for vcs_info's svn detection Frank Terbeck
@ 2011-02-11 15:07 ` Greg Klanderman
0 siblings, 0 replies; 2+ messages in thread
From: Greg Klanderman @ 2011-02-11 15:07 UTC (permalink / raw)
To: zsh-workers
>>>>> On February 11, 2011 Frank Terbeck <ft@bewatermyfriend.org> wrote:
> +{ [[ -f ".svn/entries" ]] || [[ -f ".svn/format" ]] } && return 0
[[ -f ".svn/entries" || -f ".svn/format" ]] && return 0
would be a little simpler.
What's the '.svn/format' file? I don't seem to have those.. svn 1.6.6
greg
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-02-11 15:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-11 6:47 PATCH: Fix for vcs_info's svn detection Frank Terbeck
2011-02-11 15:07 ` Greg Klanderman
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).