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

Re: subversion log conventions (from svnlook log)

From: <kfogel_at_collab.net>
Date: 2005-10-10 21:48:19 CEST

patrick boenzli <boenzlip@orxonox.ethz.ch> writes:
> I'm currenty writing a perl script for parsing the log msgs of our
> repository and to plot some nice graphics about the repo usage and user
> behaviour.
>
> To do so, I decided to parse the log messages from svnlook log <path> -r
> <revnum> which did work quite well. But ti seems that Subversion is used
> to announce file deletions before file copies. So it is usual, that a
> file /root/x.pm gets deleted first and then copied to a different place
> (read from top to buttom) directly afterwards.
> Since I internaly try to keep track of all file changes
> (addition,copy,deletion) my program gets disrubted by this action. To
> correct this is no big deal but I stated looking for a log
> standardisation documentation on the web and found nothing to learn
> about other such habits of subversion.
>
> Is there somewhere a documentation on how subversion writes these logs?

A copy that happens in rN is never from rN, but from some revision
before N. That is, the "copyfrom source revision" must be less than
N. So there shouldn't be a problem here, even if your parser works in
the most natural (but still correct) way.

The copyfrom source revision is present in 'svn log -v' output and
'svn log --xml'. Is it not available in 'svnlook log'?

-Karl

-- 
www.collab.net  <>  CollabNet  |  Distributed Development On Demand
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Oct 10 22:59:10 2005

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

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