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

Re: svn commit: rev 2821 - trunk/subversion/libsvn_wc trunk/subversion/clients/cmdline trunk/subversion/tests/clients/cmdline

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2002-08-01 21:31:03 CEST

Karl Fogel <kfogel@newton.ch.collab.net> writes:

> > When I started the access baton stuff, and started storing/comparing
> > paths I immediately had problems like this. Most of the libsvn_wc
> > code doesn't appear to care whether paths are canonical, so my guess
> > is that non-canonical paths get in.
> So if "canonical" means "has a trailing slash" (which I'm not sure it

The opposite. svn_path_canonicalize simply removes a trailing slash
if there is one.

> does, but that's a different question), then the real fix is to fix
> the callers of libsvn_wc, not to start patching up libsvn_wc to accept
> less-than-canonical patches...
> If you want to detect them and *error*, that's fine. But I think
> silently papering over them is a mistake. We need to discipline the
> callers.

OK, so libsvn_wc can assume its paths are canonical, what about other
layers? Where should the canonicalization occur, in the application?
In libsvn_client? At the libsvn_wc interface?

Philip Martin
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Aug 1 21:32:24 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.