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

Re: [WIP PATCH] vcs_info svn support for 'svnversion'



Sorry for the double post but I found a minor bug just after sending.

Daniel Shahaf wrote on Tue, Dec 10, 2019 at 05:17:34 +0000:
>       if [[ ${output} == *:* ]]; then

Change «*:*» to «*[^0-9]*».

>   if [[ $non_uniform_revision == *:* ]]; then
>     integer min=${non_uniform_revision%%:*} max=${${non_uniform_revision#*:}%%[^0-9]*}
>     hook_com[revision]="r${min}:r${max}${non_uniform_revision//[0-9:]##}"
>     hook_com[revision]+=" (+$((max-min)))"

Add:

  else
    hook_com[revision]+="${non_uniform_revision//[0-9]##}"

>   fi
> 
>   return 0
> }

(The bug was that the 'S' and 'P' indication wouldn't show on uniform-revision
wc's, but only on mixed-revision ones.)

Cheers,

Daniel



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