Scott McCreary <scottmc2@gmail.com> (HaikuPorts)


Patch
r1024558

r1024558 | philip | 2010-10-20 04:18:24 -0500 (Wed, 20 Oct 2010)

This patch makes use of find_directory() on Haiku to locate the proper
directories to use.  Currently B_USER_SETTINGS_DIRECTORY points to
/boot/home/config/settings, so this puts the .subversion directory in
/boot/home/config/settings/subversion instead of $HOME/subversion or
$HOME/.subversion.

* subversion/libsvn_subr/config_file.c
  (svn_config__sys_config_path): Set the path on Haiku to point to
   "B_COMMON_SETTINGS_DIRECTORY" + SVN_CONFIG__SYS_DIRECTORY
  (svn_config__usr_config_path): Set the path on Haiku to point to
   "B_USER_SETTINGS_DIRECTORY" + SVN_CONFIG__USR_SUBDIRECTORY

* subversion/libsvn_subr/config_impl.h:
  Set SVN_CONFIG__SYS_DIRECTORY and SVN_CONFIG__USR_DIRECTORY for Haiku

Patch by: Scott McCreary <scottmc2@gmail.com> (HaikuPorts)
Found by: Chris Roberts <cpr420@gmail.com> (HaikuPorts)