Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Subversive Eclipse Plugin: how to add version-tracking to existing project?

 
Dmitry Zhuravlev
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Greeting Gentlemen!

I am new to version control systems and need a help of yours.

Next post contains details of my questions with pictures!
 
Dmitry Zhuravlev
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please find attached a small visual explanation of my questions.

1) I see a repository as a project in Eclipse Project Explorer and can modify it without commiting. Repository has some old version number that do not coincide with repository version number in Repository Perspective. Is it ok? I thought I cannot modify repository without commit command.

2) In Repository Perspective there are two folders: first one with my project name and second one called ROOT. WHY?

svn_question1.PNG
[Thumbnail for svn_question1.PNG]
svn_question2.PNG
[Thumbnail for svn_question2.PNG]
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18009
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Eclipse cannot modify the repository without a commit. The way it works is that you check out a copy of the project from the repository and you can make changes to the copy, but to update the repository, you must commit the local changes to the repository.

ROOT is a special place in CVS so at first I thought that someone had converted a CVS repository to SVN and didn't realize that ROOT wasn't part of what needed to be converted. However, a closer look seems to indicate that ROOT is a separate webapp project, unrelated to your project.
 
Dmitry Zhuravlev
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tim,
thanks for the reply!

Today I tried to start working with SVN command line, but I failed to find SVN files on my machine! Its strange, I supposed Subversive installes standart SVN distribution also.

Do I really need to install SVN separately to make use of command line?
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18009
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Usually the Subversion repository is on a server machine, not on your local machine. So the command-line version of the Eclipse GUI project checkout would look like this:

 
Dmitry Zhuravlev
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tim, thanks,
but I cannot find the svn command line tool. I mean the file itself. Do I need to install Subversion command line tool if I want to use it, while having Subversive already installed?
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18009
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Subversive is just for Eclipse. You will have to install a command-line client if you want to perform subversion operations in a command shell or batch script. For Linux systems, the package to install is usually named "svn" or "subversion". For Windows, go to tigris.org to get a command-line client.

There's also a very popular Windows desktop plugin named TortoiseSVN that will allow you to interact with Subversion using the Windows File Explorer.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic