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