Karl Berry wrote on Sun, 08 Mar 2020 15:41 -0600:
> I tried running
> svn log -l 1 foo bar
> to try to see the last log message for files foo and bar, but get:
> svn: E27: When specifying working copy paths, only one target may be given
>
> which surprised me. Is there any way to do this in one svn command?
> Of course I could do it with a shell loop or whatever, but it would be
> convenient to do it all at once.
>
I think the closest thing is:
svn log $(svn info --show-item=last-changed-revision README INSTALL | awk
'{print "-r", $1}')
This is more efficient than a shell loop, since the latter would
authenticate N times but this authenticates just once.
Note that «svn log -l1 `svn info --show-item=url ./` README
INSTALL» (see syntax #2 in «svn help log») doesn't do what you want: it
shows just one log message overall, rather than one per file.
> I found another user asking the same question back in 2005,
> but no answer.
> https://svn.haxx.se/users/archive-2005-10/0063.shtml
>
> Thanks for any info,
> Karl
Cheers,
Daniel