Subversion on RH5 with Eclipse for svn+ssh
On the subversion server do the following steps.
# svn initialization for svn+ssh
PATH="/svn/scripts:${PATH}"
filename: svnserve
#!/bin/bash
SVN_HOME="/svn/CollabNet_Subversion"
#
# The SVN Repository can be anywhere you want.
# The file permissions need to be (group rw)
# Then everything runs as the user.
#
SVNRepository="/svn/repositories"
whoiam=$(/usr/bin/id --user --name)
export LD_LIBRARY_PATH=${SVN_HOME}/lib:${LD_LIBRARY_PATH}
${SVN_HOME}/bin/svnserve -t --tunnel-user=$whoiam -r ${SVNRepository}
filename: snvserve-sudo
#!/bin/bash
SVN_HOME="/svn/CollabNet_Subversion"
#
# The SVN Repository can be anywhere you want.
# The file permissions need to be (group rw)
# Then everything runs as the user.
#
SVNRepository="/svn/repositories"
whoiam=$(/usr/bin/id --user --name)
if "$whoiam" != "svnadmin"
then
#echo $whoiami
sudo -u svnadmin /svn/scripts/svnserve -t --tunnel-user=$whoiam -r ${SVNRepository}
else
#echo $whoiam
export LD_LIBRARY_PATH=${SVN_HOME}/lib:${LD_LIBRARY_PATH}
${SVN_HOME}/bin/svnserve $@
fi
See the link below to install the Collab plug-in for Eclipse
http://www.open.collab.net/downloads/desktops/installing_cdee.html?_=d
To Convert to SVN
1) Copy your workspace and delete old cvs projects:
2) Startup eclipse selecting the new project.
3) Setup SVN SSH client
See the SVN Interface drop-down labeled Client:
Select SVNKit not JavaHL
4) Set up the SVN repository
Select New => Repository Location
Set the URL to: svn+ssh://svnserverurl/project
Click on Finish
You should be prompted for you SVN Author Name.
Use your login name and select Save Author Name
Click on Finish
but select “Import => SVN => Checkout Projects from SVN”
Select the repository you just created.
Now you should see the SVN Repository tree.
Go into the branch you want,
Select the project you want.
Click on Next
Select Check out as project in the workspace
Click Finish.
6) Repeat for the any other projects you may want.
7) Now you should be able to, update, check-in, etc using the Team menu. Just as you would if you were using CVS
Changing SVN Password
We used svn+ssh (SVNKit) to access the Subversion repository. Changing your SVNKit password is a bit of a pain. Here is the process. If you have not done so, edit the eclipse short cut you use to start eclipse. Add a –keyring option so that your target looks like C:\ecplise\eclipse.exe –keyring C:\dev\eclipse.keyring If the keyring file C:\dev\eclipse.keyring exists then delete it. The next time you access Subversion you will be prompted for you password. If you want to change your password again just delete the keyring file. |
SVN - CollabNet Plugin
OverviewThe CollabNet plugin for Eclipse is a great help for doing merges in an SVN repository. It is recommended to install this plugin if you intend to do any merges. Install StepsThe following steps can be found at: http://www.collab.net/downloads/desktops/installing_cdee.html?_=d
|
SVN Notes
More Information about Subversion
SVN Merges & the Eclipse Plugin
The standard Eclipse distribution has a SVN plug-in (subclipse) that works fine for normal development work. However we recommend that you upgrade to the CollabNet plug-in for doing merges. The ColabNet plug-in has enhanced features for support the Subversion 1.5 merge features. The ColabNet plug-in and the subclipse plug-in are compatible (both actually come from ColabNet) Head verses Trunk In CVS the main branch is call HEAD. In Subversion the main branch is called trunk To add to the confusion, SVN has Revisions. These are like CVS revisions but rather instead of dot notations they are just simple numbers. The latest revision in SVN is called HEAD. So to get the latest version from the main branch you should check out the HEAD revision of the trunk. But you could also the latest version of the a branch by checking out the HEAD revision. The Anthill builds include a user editable property calls Revision. The default revision is HEAD. Generally you should never have to worry about it. Just use the default. |