Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [WIP PATCH] vcs_info svn support for 'svnversion'
- X-seq: zsh-users 24511
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: [WIP PATCH] vcs_info svn support for 'svnversion'
- Date: Tue, 10 Dec 2019 05:55:23 +0000
- In-reply-to: <20191210051734.xmo2pyn6m7vzblwr@tarpaulin.shahaf.local2>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <20191201005217.m4rpqq623l4vapwe@tarpaulin.shahaf.local2> <20191210051734.xmo2pyn6m7vzblwr@tarpaulin.shahaf.local2>
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