aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Difference between subversion and subclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Difference between subversion and subclipse" Watch "Difference between subversion and subclipse" New topic
Author

Difference between subversion and subclipse

Calson LI
Ranch Hand

Joined: Nov 18, 2005
Posts: 42
Hi all,

I would like to use version control tool, subversion in Eclipse Europa. Is subclipse a subversion for Eclipse?

I have just install subclipse 1.2 into Eclipse Europa. But I don't know how to perform check-in and check-out procedures.

Could anyone give me some advice?

Thanks in advance.
Calson
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 29287
    
140

Calson,
Subversion is the actual version control project. You need to have subversion installed somewhere (your machine or on the server) to hold the data.

Subclipse is an Eclipse plugin that works as a Subversion client. It shields you from having to use the command line to access Subversion.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Calson LI
Ranch Hand

Joined: Nov 18, 2005
Posts: 42
Hi Jeanne,

Thanks for your reply. I donwloaded and installed subversion 1.5 for Windows in my computer. Could you tell me how to set-up repository using subversion so that every subversion client can check-out and check-in?

Thank you,
Calson
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15665
    
  15

Your best bet on setting up a Subversion repository is to go to the tigris.org website and get the definitive book on Subversion. It's fairly easy to read.


Customer surveys are for companies who didn't pay proper attention to begin with.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 29287
    
140

Carlson,
Tim is correct that it's a lot to type out all those instructions - especially since a free book exists. I don't know of this is the one Tim is referring to, but O'Reilly has an "open-source" copy of this book online
Calson LI
Ranch Hand

Joined: Nov 18, 2005
Posts: 42
Thanks for Tim and Jeanne's advice. I will read this book, and seek your advice in case I encountered problem.

Thanks again,
Calson
Calson LI
Ranch Hand

Joined: Nov 18, 2005
Posts: 42
Hi all,

I succeeded to install subversion into my computer (windows XP SP2) and created a repository as follows:

C:\svn create /svn_repository/mt258
C:\svn import /chung/mt258/program /svn_repository/mt258/program -m "initial import"

and succeed to list the imported contents with
C:\svn list file:///svn_repository/mt258/program

But I failed to use subclipse 1.0.6 in Eclipse Europa when trying to create a repository of URL "file:///svn_repository/mt258/program". An exception "org.tigris.subversion.javahl.ClientException:couldn't open a repository svn:Unable to open an ra_local session to URL" was displayed.

Could anyone give me some advice?

Thanks in advance,
Calson
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5779
    
    7

Check the Team/SVM properties in Eclipse and make sure that the SVN Interface Client is set to JavaHL - that is the only client that can use the file: URL.

Make sure that you are running Eclipse from the C: drive - if not, you will have to add the drive letter to the URL: file:///c:/svn_repository/mt258

Finally, I hope that when you wrote "in Eclipse Europa when trying to create a repository" that you really meant that you opened the SVN Repository view and attempted to add a new repository location.


JBoss In Action
Pramod Chris
Greenhorn

Joined: Oct 15, 2004
Posts: 21
Calson,
Check the following links out and see if you can get some help...

http://www-128.ibm.com/developerworks/opensource/library/os-ecl-subversion/
http://ist.berkeley.edu/as-ag/tools/usage/subclipse-usage-tips.html
http://open.ncsu.edu/se/tutorials/subclipse/

Pramod
Calson LI
Ranch Hand

Joined: Nov 18, 2005
Posts: 42
Thanks a lot for Peter and Pramond's advice. I read the manuals online and tried Peter's advice. I failed to open repository in subclipse view by trying to enter URLs as follows:
1st trial=> file:///svn_repository/mt258/program
2nd trial=> file:///c:/svn_repository/mt258
3rd trial=> file://c:/svn_repository/mt258

I got the following error messages on the console:
Couldn't open a repository
svn: Unable to open an ra_local session to URL
svn: Unable to open repository 'file:///svn_repository/mt258/program'
Unsupported FS format
svn: Expected FS format '2'; found format '3'

Couldn't open a repository
svn: Unable to open an ra_local session to URL
svn: Unable to open repository 'file:///c:/svn_repository/mt258'
Unsupported FS format
svn: Expected FS format '2'; found format '3'

Couldn't open a repository
svn: Unable to open an ra_local session to URL
svn: Unable to open repository 'file://c:/svn_repository/mt258'


Could anyone advise what's going wrong? I stuck on this issue for a week. Now, I am wondering if CVS will be easier to setup and use. Since I have read comments in this forum, I used subversion + subclipse, just cannot imagine that it is so hard to set-up.

For your information, I just have one hard disk C:, I installed subversion server 1.5.0, subclipse plug-in and eclipse all in C: drive. Also, the OS is Windows XP SP2.

Thanks in advance,

Calson
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5779
    
    7

What version of subversion are you using? The error message

Expected FS format '2'; found format '3'

implies that the version of subversion you are running is newer that what is supported by the subclipse version you are running. You could try upgrading subclipse to version 1.4.3.

I agree that it is often a painstaking process to get some of this open-source stuff up and running (rarely is it "run the installer and it just works"), but it is worth it - once you have it working you will wonder how you ever did without it.
Calson LI
Ranch Hand

Joined: Nov 18, 2005
Posts: 42
Many thanks Peter, your advice are 100% correct. I used a subclipse 1.0.6. Now I download subclipse 1.4.3 which requires MyLyn plug-in 3.0. Then after installing both plug-ins, the repository path automatically appeared in SVN view.

But the final question is that I hope the SVN view is in English but it is in Chinese. I am reading English subclipse manual, it is hard for me to translate to Chinese although I am using Chinese Windows XP SP2.

Can anyone advise how to ensure subclipse plug-in installed can be in English version? The other plug-ins in Eclipse are in English.

Thanks in advance,
Calson
Calson LI
Ranch Hand

Joined: Nov 18, 2005
Posts: 42
Hi all,

I finally managed to use subclipse 1.4.3 to open repository in Eclipse. Since there are so many experts here willing to help novice like me, I hope that I can help others to tackle technical problems.

BTW, I solved the problem of displaying Chinese version subclipse view in Eclipse, it is caused by regional settings in control panel.

Thank you again,
Calson
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Difference between subversion and subclipse
 
Similar Threads
eclipse get closed while adding a SVN repository
continuous delivery of software
CVS & Eclipse
File structure is detached from SVN repository.
Tortoise SVN eclipse plugin