Archive

Archive for August, 2010

How to setup subversion server

August 8, 2010 Leave a comment

Q. How to put subversion server on our own?

[sun@example ~]$ su –
Password:
[root@example ~]# cd /var/www/html
[root@example html]# cd HelloWorld/

[root@example HelloWorld]# ls
HelloWorld-app.xml  HelloWorld-app.xml~  HelloWorld.back.html  HelloWorld.html  HelloWorld.html~  icons  jquery_sample.htm  jquery_sample.js  lib
[root@example HelloWorld]# cd ..
[root@example html]# svn import ./HelloWorld file:///svnrepos/helloworld
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
[root@example html]# svn import /var/www/html/HelloWorld file:///svnrepos/helloworld
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
[root@example html]# export EDITOR=vi
[root@example html]# svn import /var/www/html/HelloWorld file:///svnrepos/helloworld

Log message unchanged or not specified
(a)bort, (c)ontinue, (e)dit:
c
Adding         /var/www/html/HelloWorld/.project
Adding         /var/www/html/HelloWorld/lib
Adding         /var/www/html/HelloWorld/lib/jquery
Adding         /var/www/html/HelloWorld/lib/jquery/jquery-1.3.2.js
Adding         /var/www/html/HelloWorld/lib/jquery/jquery-1.3.2.min.js
Adding         /var/www/html/HelloWorld/lib/air
Adding  (bin)  /var/www/html/HelloWorld/lib/air/applicationupdater_ui.swf
Adding         /var/www/html/HelloWorld/lib/air/AIRAliases.js
Adding         /var/www/html/HelloWorld/jquery_sample.htm
Adding         /var/www/html/HelloWorld/HelloWorld-app.xml
Adding         /var/www/html/HelloWorld/icons
Adding         /var/www/html/HelloWorld/jquery_sample.js
Adding         /var/www/html/HelloWorld/HelloWorld.back.html
Adding         /var/www/html/HelloWorld/HelloWorld.html

Committed revision 1.

[root@example html]# svnserve -d

[root@example Downloads]# svn co svn://localhost/svnrepos/helloworld
A    helloworld/.project
A    helloworld/lib
A    helloworld/lib/jquery
A    helloworld/lib/jquery/jquery-1.3.2.js
A    helloworld/lib/jquery/jquery-1.3.2.min.js
A    helloworld/lib/air
A    helloworld/lib/air/applicationupdater_ui.swf
A    helloworld/lib/air/AIRAliases.js
A    helloworld/jquery_sample.htm
A    helloworld/HelloWorld-app.xml
A    helloworld/icons
A    helloworld/jquery_sample.js
A    helloworld/HelloWorld.back.html
A    helloworld/HelloWorld.html
Checked out revision 1.
[root@example Downloads]#

Done.

Note: thanks to this url, which was not working in my Box, The concept is here modified for Red hat linux.

http://www.tonyspencer.com/2007/03/02/setup-a-subversion-server-in-4-minutes/

Advertisements
Categories: centOS, Fedora 12