Showing posts with label svn. Show all posts
Showing posts with label svn. Show all posts

Friday, October 10, 2014

Config Apache SVN server for Mavericks

I have a post about Config Apache SVN server for Mountain Lion

This time, after upgrade to 10.9 Mavericks, Apache fails again.

The mod_dav_svn.so and mod_authz_svn.so are missing.

$ apachectl -S
httpd: Syntax error on line 501 of /private/etc/apache2/httpd.conf: Syntax error on line 2 of /private/etc/apache2/other/svn.conf: Cannot load /usr/libexec/apache2/mod_dav_svn.so into server: dlopen(/usr/libexec/apache2/mod_dav_svn.so, 10): image not found



Here's the fix

Download And Build Subversion

 http://archive.apache.org/dist/subversion/subversion-1.6.23.tar.bz2


add symlink
ln -s /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.9.xctoolchain
cd subversion-1.6.23
./configure
make
sudo cp subversion/mod_dav_svn/.libs/mod_dav_svn.so /usr/libexec/apache2/.
sudo cp subversion/mod_authz_svn/.libs/mod_authz_svn.so /usr/libexec/apache2/.

Thursday, May 16, 2013

SVN create and switch to branch


Mac OS X 10.8.2
svn, version 1.6.18 (r1303927)
http://situee.blogspot.com/2013/05/svn-create-and-switch-to-branch.html

I want to work a new svn branch. And try the following comment

svn copy svn://server/path/trunk/project_name svn://server/path/branches/new_branch

But it's not ok. It returns error message:

"svn: Could not use external editor to fetch log message; consider setting the $SVN_EDITOR environment variable or using the --message (-m) or --file (-F) options
svn: None of the environment variables SVN_EDITOR, VISUAL or EDITOR are set, and no 'editor-cmd' run-time configuration option was found"

The command MUST have comment message like this

svn copy svn://server/path/trunk/project_name svn://server/path/branches/new_branch -m "create new branch"

The result is the project is copy to 

svn://server/path/branches/new_branch/project_name

The we can go to the working copy and switch to the new branch by

 svn switch svn://server/path/branches/new_branch/project_name

Everything is ok. You modification to the old working copy is still there.



The --relocate option of switch causes svn switch to do something different: it updates your working copy to point to the same repository directory, only at a different URL (typically because an administrator has moved the repository to another server, or to another URL on the same server).[1]

[1] http://svnbook.red-bean.com/en/1.6/svn.ref.svn.c.switch.html



Thursday, April 25, 2013

Config Apache SVN server for Mountain Lion


After upgrade to Mac OS X 10.8 Mountain Lion.
My local SVN server is not working.
The setting should be the same, but the svn setting is removed from httpd.conf
How to get it work again?  Let's GO!!


Create file "/etc/apache2/other/svn.conf",
Add the following lines into the "svn.conf"

#svn module
LoadModule dav_svn_module libexec/apache2/mod_dav_svn.so
LoadModule authz_svn_module libexec/apache2/mod_authz_svn.so

<Location /svn>
DAV svn
SVNPath "/svn"
AuthType Basic
AuthName "admin"
AuthUserFile /etc/your_user_name.htpasswd
Require valid-user
</Location>