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