• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Difference between subversion and subclipse

 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Calson LI
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Saloon Keeper
Posts: 27763
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Jeanne Boyarsky
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
reply
    Bookmark Topic Watch Topic
  • New Topic