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

Re: svn propedit cannot chdir

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2002-08-13 14:28:12 CEST

Branko ─Œibej <brane@xbc.nu> writes:

> >This behaviour is enforced by the path-split regression tests. Within
> >the subversion code there are some places where "" works as the
> >current directory, and there are some where it doesn't work.
> >
> "" should always work, and we shouldn't have to do
> (platform-specific?) checks for that in our code, those should be in
> APR. (All of which implies that our canonicalization should just strip
> off any leading ".[/]", thereby changeing "." to "".)

I asked earlier and was told "." was a canonical path. Can "" be
canonical as well? Can we have two canonical forms for the same

If the subversion libraries are to work with both "" and "." then the
path library needs attention

1. svn_path_is_child("", "foo")

   This gives NULL but I think "foo" would be better.

2. svn_path_get_longest_ancestor("", "foo")

   This gives NULL but I think "" (assumming "" is canonical!) would
   be better. I think we also need to look at (".", "foo") here.

Philip Martin
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Aug 13 14:28:47 2002

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.