Implement "relpath_depth()" as a SQLite custom function.  This is useful for contructing queries and triggers that verify the WC database integrity.
Implement "relpath_depth()" as a SQLite custom function.  This is useful for
contructing queries and triggers that verify the WC database integrity.

This implementation is in sqlite.c where it is available to all SQLite users
in Subversion.  Only libsvn_wc currently needs it, and with a bit of
abstraction work it could be moved to libsvn_wc.  However, it is a generic
relpath function so there may be little reason to move it.

* subversion/libsvn_subr/sqlite.c
  (relpath_depth): New function.
  (svn_sqlite__open): Install relpath_depth() as a custom function.

jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion