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

Challenge: Quickly finding the rev an ood path was deleted

From: Paul Burba <paulb_at_softlanding.com>
Date: 2006-10-25 22:49:27 CEST

For those of you not following this thread...

  http://svn.haxx.se/dev/archive-2006-10/0018.shtml

...We've come up against a difficult problem when getting the status on
out of date paths which no longer exist at HEAD. Specifically we would
like to populate the svn_wc_status2_t ood_last_cmt_rev member with the
revision the path was deleted, currently this is just set to
SVN_INVALID_REVNUM. This isn't important for the svn command line, but
for other users of svn_client_status2() like Subclipse it is.

My current solution is a new function in libsvn_repos/rev_hunt:
svn_repos_deleted_rev(). Unfortunately my crude linear search approach is
painfully slow if the revision a path was deleted and HEAD are
significantly far apart. You can see svn_repos_deleted_rev() in all it's
horrible glory and the rest of the (much prettier) work in progress at the
branch https://svn.collab.net/repos/svn/branches/ood-status-info

So, to sum up the challenge: "If a path doesn't exist at HEAD, but may
have existed previously, what is the most efficient way to find the
revision it was most recently deleted?"

dlr suggested it might be possible to do this in the FS layer. If anyone
has an inkling how to do that, or sees some other inspired solution please
let us know (it's probably best to reply to the aforementioned thread
rather than this one).

Thanks,

Paul B.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Oct 25 22:51:21 2006

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.