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

[PATCH] svn_path_canonicalize updated

From: Garrett Rooney <rooneg_at_electricjellyfish.net>
Date: 2001-09-20 04:39:45 CEST

here's an updated version of the canonicalization patch... this goes
back to a single canonicalize function, rather than separate ones for
urls and paths. it also fixes the one confirmed problem i found in
the path handling in the rest of the code. note, i haven't tested
with a server yet because i don't have one set up, and i haven't
tested on windows because i don't have access to a windows machine.
someone definately needs to test that before anyone even thinks about
commiting this. i also haven't checked import, since it is currently
segfaulting, but all the rest of the tests pass fine.

* util.c (svn_cl__args_to_target_array): don't canonicalize the paths
        because we cannot be sure what style they are in.

* svn_path.h: update comment for svn_path_canonicalize.

* path.c (svn_path_canonicalize): actually attemt to remove redundant
        portions of the path. for url and repos styles allow for the
        possibility of a http:// or a file:// at the beginning of the

garrett rooney                     Unix was not designed to stop you from 
rooneg@electricjellyfish.net       doing stupid things, because that would  
http://electricjellyfish.net/      stop you from doing clever things.

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Received on Sat Oct 21 14:36:42 2006

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.