Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: vcs_info: detected svn1.8 upgraded working copies



When upgrading a svn1.7 working copy to svn1.8, the .svn dir becomes:

    % ls .svn
    pristine        tmp             wc.db

It doesn't contain a file named "format", which causes vcs_info not to
detect it.  Strictly speaking, that's an upstream bug (the .svn/format
file is required to make svn1.6 clients issue the right error message),
but since it's "out there", I suggest that vcs_info compensate for it:

[[[
diff --git a/Functions/VCS_Info/Backends/VCS_INFO_detect_svn b/Functions/VCS_Inf
index 43dedcd..c2288e4 100644
--- a/Functions/VCS_Info/Backends/VCS_INFO_detect_svn
+++ b/Functions/VCS_Info/Backends/VCS_INFO_detect_svn
@@ -7,5 +7,5 @@ setopt localoptions NO_shwordsplit
 [[ $1 == '--flavours' ]] && return 1
 
 VCS_INFO_check_com ${vcs_comm[cmd]} || return 1
-vcs_comm[detect_need_file]="entries format"
+vcs_comm[detect_need_file]="entries format wc.db"
 VCS_INFO_bydir_detect '.svn' || return 1
]]]



Messages sorted by: Reverse Date, Date, Thread, Author