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

How to detect copy/move operations with svnlook?

From: Nemanja Corlija <chorlya_at_gmail.com>
Date: 2005-08-19 00:58:30 CEST

Hi all,

I need to detect when users create tags/branches and then use "svnlook
tree" to get the list of files in those tags/branches. From what I've
been able to observe, "svnlook changed" always register that "svn
copy" like an directory add. For example if I do

  svn copy file:///var/svn/prj1/trunk
file:///var/svn/prj1/tags/release-1.0 -m "Release 1.0"

and then

  svnlook changed /var/svn/prj1

I get:

 A tags/release-1.0

How flawed is this logic? Does every "svn copy" gets registered like
this (or similar) in "svnlook changed"? If there is another, more
reliable, way to do this without working copy, please point me in the
right direction.

Why I need this?
I need to store entire repository tree in db and that works fine for
commits since every file that was ever added to repository is listed
by "svnlook changed". But "svn copy" is not that verbose when it comes
to "svnlook changed". I know I can always parse the output of "svnlook
tree" and refresh db accordingly, but for performance reasons I want
to avoid that as much as possible. So ideal solution would be to have
at least a very reasonable assumption that a copy or move inside
repository took place, and then do the "svnlook tree" thing to refresh
the db.

Any ideas/comments are greatly appreciated.

Thanks

-- 
Nemanja Corlija
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Aug 19 06:14:31 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.