[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: last log message of multiple files?

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Mon, 9 Mar 2020 02:09:55 +0000

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: E200007: 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


Received on 2020-03-09 03:10:14 CET

This is an archived mail posted to the Subversion Users mailing list.