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

Re: getting the log from svn client (without access to svnlook log)

From: Ryan Schmidt <subversion-2009a_at_ryandesign.com>
Date: Mon, 4 May 2009 18:20:57 -0500

On May 4, 2009, at 10:21, Sim Tong wrote:

> I'd like to get access to the log (or comments) information
> related to a given revision.
> I usually get them using the command :
>
> $ svnlook log <REPOSITORY> -r <revision number>
>
> This is handy if I have access to the repository.
>
> How can I do that without access to the repository ?
>
> I noticed that I can see the comments with the command
> $svn log <SVN URL> -v -r <revision number>
>
> However, it also lists the changeset. As my comments can also be on
> several lines, I can't just make the assomption that the last line
> corresponds to the comments.
>
> Does anyone know any trick ?

The output of "svn log" is designed to be parseable.

The header line tells you, at the end, how many lines long the log
message is.

$ svn log -r 50596 http://svn.macosforge.org/repository/macports/
trunk/dports
------------------------------------------------------------------------
r50596 | portindex_at_macports.org | 2009-05-04 17:53:04 -0500 (Mon, 04
May 2009) | 5 lines

Total number of ports parsed: 5802
Ports successfully parsed: 5802
Ports failed: 0

------------------------------------------------------------------------

In the above example, it lets you know the log message is "5 lines"
long.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2061512

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-05-05 01:22:10 CEST

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.