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

Re: RA->get_repos_root() needed

From: mark benedetto king <mbk_at_lowlatency.com>
Date: 2003-10-14 04:58:05 CEST

On Mon, Oct 13, 2003 at 04:03:17PM -0500, C. Michael Pilato wrote:
> kfogel@collab.net writes:
>
> > A thought: couldn't you take the initial log message (the youngest
> > one), find the target file path in the file list, and "lay it over"
> > the original URL starting from the right edge, using the difference to
> > discover the non-path portion of the URL?
>
> No. The file might not have been actually modified in that revision
> (it could be the child of a copied dir), and therefore will not show
> up in the "changed paths" list.

Ack, that breaks my nasty hack because of the ambiguity introduced:

Let's say the URL in question was

http://svn.collab.net/repos/svn/trunk/foo/foo/file

and the changed_path is /foo

Is the repos-URL

http://svn.collab.net/repos/svn/trunk/foo/foo/
    or
http://svn.collab.net/repos/svn/trunk/foo/ ?

Only ra_dav knows for sure. :-)

--ben

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Oct 14 04:58:43 2003

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.