aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Subversive Eclipse Plugin: how to add version-tracking to existing project? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Subversive Eclipse Plugin: how to add version-tracking to existing project?" Watch "Subversive Eclipse Plugin: how to add version-tracking to existing project?" New topic
Author

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

Dmitry Zhuravlev
Ranch Hand

Joined: Apr 14, 2010
Posts: 93
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

Joined: Apr 14, 2010
Posts: 93
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?



[Thumbnail for svn_question1.PNG]

[Thumbnail for svn_question2.PNG]

Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16142
    
  21

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
Dmitry Zhuravlev
Ranch Hand

Joined: Apr 14, 2010
Posts: 93
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

Joined: Jun 25, 2001
Posts: 16142
    
  21

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

Joined: Apr 14, 2010
Posts: 93
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

Joined: Jun 25, 2001
Posts: 16142
    
  21

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.
 
 
subject: Subversive Eclipse Plugin: how to add version-tracking to existing project?