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

Re: Issue #960: get repos root inot entries file

From: Greg Hudson <ghudson_at_MIT.EDU>
Date: 2005-06-03 01:10:08 CEST

On Thu, 2005-06-02 at 23:14 +0200, Peter N. Lundblad wrote:
> > If I were doing it, I'd only worry about newly-created entries, and
> > wouldn't put any effort into migrating existing entries to have the
> > repository root information.
> >
> But doing the migration is cheap, isnce we have to do it on checkout
> anyway and update and checkout share code. So I think it is reasonable in
> this case

Well, get_repos_root is guaranteed to return a prefix of the passed-in
URL. So, for a new entry there should never be a problem. For an
existing entry you might run into the difficulty you mentioned, in which
case either overwriting the URL or failing to store the repos root would
be reasonable.

Of course, when you go to use the repos root, you'll still have to
handle the case where it's not a prefix of the entry URL since the
entries file might have become corrupt. But erroring in that case
should be reasonable.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Jun 3 01:11:35 2005

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