Monday, April 28, 2008

svn on eclipse

11Previously I was knowing about using svn manually. That I learnt using
http://artis.imag.fr/~Xavier.Decoret/resources/svn/index.html11
But for me and my team working in PHP, better GUI is required. So we decided to work with subeclipse.
I got success in doing this with the help of Marutee and POOL team.

For Configuration on eclipse:
  • Copy/Download Eclipse Europa(3.3.1.1). Then added php and subeclipse plugin in it.
  • install svn using command $sudo apt-get install subversion
  • started svn service using $ sudo svnserve -d
  • created svn directory "svn_eclipse" using $svnadmin create --fs-type fsfs /home/user/svn_eclipse
  • create user for that repository. Keep in mind that there should be no space at the beginning of line. Otherwise it will throw exception while creating folder in eclipse. $vim /home/user/svn_eclipse/conf/passwd
  • grant read, write access and set database password in svnserve.conf $vim /home/user/svn_eclipse/conf/svnserve.conf
  • Then open eclipse directory and execute binary. Define workspace svn repository path.
  • Go to SVN repository perspective in eclipse.
  • Add new repository path as svn://serverIPAddress/home/user/svn_eclipse
  • Then right click on that to create new directory. Provide username and password.
  • New directory is created, now right click on that directory to import or checkout

No comments: