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

Re: Listing peg versions?

From: Martin Scharrer <mailinglists_at_madmarty.de>
Date: 2006-12-19 16:23:22 CET

On Tuesday 19 December 2006 08:12, Martin Scharrer wrote:
> svn log -v | perl -ne '/^r(\d+) \|/ && ($r = $1); m{^ A /trunk/bin/svn$}
> && print "Rev: $r\n"'
>
> but there are also better scripting solutions (Using the --xml switch and
> XML::Simple, ...)

I wrote now a perl script using XML::Simple, it can be found under
http://www.scharrer-online.de/svn/svnscripts.shtml#svnpegrevs

It lists all 'add'-revisions of the given path.
You can give the working copy path of an existing file/dir or
if the file currently, i.e. latest rev, doesn't exists or you don't have a
working directory you can give the repository URL and the path inside the
repository.

best,
Martin

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Dec 19 16:31:01 2006

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.