"Shawn Minto" <sminto@gmail.com> wrote on 10/16/2006 07:24:05 PM:
> I am just starting to build a simple analysis tool using svn, but I
> just ran into a small problem. Is there a way to ask for the revision
> that a file was deleted in? I need all of the affected files from
> previous history, but if a file was deleted, querying for the log with
> head fails.
You can't even do this with Subversion. Even worse, it doesn't even seem
all that fixable. My coworker Paul Burba, a full committer for svn, has
been looking into this for me. He has been making a bunch of improvements
to svn status and the one we are tripped up on is this. The way the
repository is designed it just isn't readily available. He has changed
the code internally to do a linear lookup to discover this information,
but it does not scale well at all. He could improve it with a binary
search but it is still ugly. And keep in mind this is all at the lowest
levels of the code!
One thing you could potentially do is svn log of the parent container and
then parse the output to discover when it was deleted. If you have some
reasonable start revision you can use, it might work OK for you.
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subclipse.tigris.org
For additional commands, e-mail: dev-help@subclipse.tigris.org
Received on Tue Oct 17 02:00:43 2006