[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

From: Garrett Rooney <rooneg_at_electricjellyfish.net>
Date: 2001-09-19 05:48:44 CEST

this patch makes svn_path_canonicalize remove redundant dirseps as
well as removing extra dirseps at the end of a path. In addition, it
implememnts svn_url_canonicalize, which does the same for url's, since
it seems there are several places in the code where we were passing
url's to svn_path_canonicalize. note, i have grepped the source tree
for instances of svn_path_canonicalize and changed those i found that
should use the url version. it is possible that i've missed some
though, specifically in the server side stuff, as i don't currently
have a server set up to test with. someone familiar with the server
side code should probably give this a close look.

* path.c (condense_path): add new helper function.

* path.c (svn_path_canonicalize): use condense_path to remove
redundant portions of the path.

* path.c (svn_url_canonicalize): new function to handle cases where
urls were being passed to svn_path_canonicalize.

* path.c (add_component_internal): remove trailing dirseps ourselves
instead of using svn_path_canonicalize because we cannot be sure if
we're being called with a path or a url.

* path.c (svn_path_remove_component): ditto.

* path.c (svn_path_split): ditto.

* svn_path.h: add prototype for svn_url_canonicalize

* checkout-cmd.c (svn_cl__checkout): use svn_url_canonicalize instead
of svn_path_canonicalize since this is a url.

* checkout.c (svn_client_checkout): ditto.

* entries.c (svn_wc__compose_paths): ditto.

-- 
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:41 2006

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