/[Apache-SVN]
ViewVC logotype

Revision 1037662


Jump to revision: Previous Next
Author: julianfoad
Date: Mon Nov 22 10:31:34 2010 UTC (13 years, 5 months ago)
Changed paths: 3
Log Message:
Introduce an svn_fspath__* API for manipulating Subversion filesystem paths
that start with a '/'.  Presently, the svn_uri_* API is being abused for
this purpose; once the callers all use svn_fspath__*, the svn_uri_* API can
be tightened up.  The functions provided initially are just those that that
are currently needed in libsvn_fs*, libsvn_repos and libsvn_ra*.

If FSPATH_USE_URI is defined during compilation, the implementation forwards
to the svn_uri_* API, which could be helpful in tracking down any problems
or differences that may be encountered while porting the callers.

* subversion/include/svn_dirent_uri.h,
  subversion/libsvn_subr/dirent_uri.c
  (svn_fspath__is_canonical, svn_fspath__join, svn_fspath__is_child,
   svn_fspath__basename): New functions.

* subversion/tests/libsvn_subr/dirent_uri-test.c
  (test_fspath_is_canonical, test_fspath_join, test_fspath_is_child,
   test_fspath_basename): New tests.
  (test_funcs): Add the new tests.


Changed paths

Path Details
Directorysubversion/trunk/subversion/include/svn_dirent_uri.h modified , text changed
Directorysubversion/trunk/subversion/libsvn_subr/dirent_uri.c modified , text changed
Directorysubversion/trunk/subversion/tests/libsvn_subr/dirent_uri-test.c modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26