-
How to use Subversion with Eclipse (39 messages)
- Posted by: Frank Charles
- Posted on: July 13 2006 10:31 EDT
From the beginning, Eclipse included tight integration with the Concurrent Versions System (CVS) in order to provide access to change-management capabilities. Now, many projects -- notably those run by the Apache Software Foundation -- are using a different change-management system: Subversion. This article demonstrates how to add Subversion support to Eclipse and how to perform basic version-control activities from the IDE. It's based on Subclipse, which is a freely available SVN plugin for Eclipse.Threaded Messages (39)
- Very favourable impression by marc schipperheyn on July 13 2006 11:45 EDT
- Re: Very favourable impression by Andrew Perepelytsya on July 13 2006 20:06 EDT
- Commit individual files or multifiles as one commit operation by Jerry Yang on July 13 2006 08:59 EDT
- Atomic commits are the bomb by George Coller on July 14 2006 02:08 EDT
-
Re: Atomic commits are the bomb by Erik van Oosten on July 14 2006 03:09 EDT
- Re: Atomic commits are the bomb by Guido Anzuoni on July 14 2006 08:06 EDT
-
Re: Atomic commits are the bomb by George Coller on July 14 2006 10:14 EDT
-
Subclipse problem by Steven Peh on July 17 2006 12:26 EDT
-
Re: Subclipse problem by Steven Peh on July 17 2006 12:26 EDT
-
atomic commits across projects by Christian Sell on July 17 2006 04:33 EDT
- Re: atomic commits across projects by Mark Hewett on July 17 2006 10:30 EDT
- Re: atomic commits across projects by B C on July 21 2006 05:31 EDT
-
atomic commits across projects by Christian Sell on July 17 2006 04:33 EDT
-
Re: Subclipse problem by Steven Peh on July 17 2006 12:26 EDT
-
Subclipse problem by Steven Peh on July 17 2006 12:26 EDT
-
Re: Atomic commits are the bomb by Erik van Oosten on July 14 2006 03:09 EDT
- breaks my eclipse all the time..... by Emerson Cargnin on July 14 2006 12:05 EDT
- POLARION by Brian Greene on July 14 2006 03:55 EDT
- Re: breaks my eclipse all the time..... by Carfield Yim on July 19 2006 12:56 EDT
- Re: Very favourable impression by Andrew Perepelytsya on July 13 2006 20:06 EDT
- Eclipse Subversive project by Sean Sullivan on July 13 2006 11:55 EDT
- Re: Eclipse Subversive project by Mike Youngstrom on July 13 2006 15:37 EDT
- Re: Eclipse Subversive project by Alexandre Poitras on July 13 2006 05:39 EDT
- Re: Eclipse Subversive project by Mark Davis on July 13 2006 06:05 EDT
- Tried Subversive by Carl Phillips on July 14 2006 10:27 EDT
- Re: Eclipse Subversive project by Mike Youngstrom on July 13 2006 15:37 EDT
- And here is how you do it in JDeveloper by shay shmeltzer on July 13 2006 17:55 EDT
- subersion is badly integrated that some try to develop their own by francois montmasson on July 13 2006 18:25 EDT
- Comparison by Steve Benigan on July 13 2006 21:30 EDT
- Re: Comparison by Gian G on July 14 2006 11:58 EDT
- Re: How to use Subversion with Eclipse by Andrew Clifford on July 13 2006 22:24 EDT
- Re: How to use Subversion with Eclipse by Basil Vandegriend on July 13 2006 23:24 EDT
- TortoiseSVN is essential. by George Coller on July 14 2006 02:14 EDT
- Re: TortoiseSVN is essential. by Dean Schulze on July 14 2006 10:02 EDT
-
Re: TortoiseSVN is essential. by George Coller on July 14 2006 10:17 EDT
- Re: TortoiseSVN is essential. by Guido Anzuoni on July 14 2006 11:22 EDT
-
Re: TortoiseSVN is essential. by George Coller on July 14 2006 10:17 EDT
- Re: TortoiseSVN is essential. by Dean Schulze on July 14 2006 10:02 EDT
- Another article about Subclipse. by Eugene Kuleshov on July 14 2006 08:06 EDT
- JavaSVN by Robert Hayes on July 14 2006 19:27 EDT
- Re: How to use Subversion with Eclipse by B C on July 21 2006 05:27 EDT
- Re: How to use Subversion with Eclipse by B C on July 21 2006 05:29 EDT
- eclipse by l esca on December 17 2012 01:17 EST
- hi by Matt Coleman on April 03 2013 03:44 EDT
- hi by Matt Coleman on May 20 2013 04:02 EDT
- hello by Matt Coleman on May 20 2013 04:08 EDT
- hello by Matt Coleman on May 20 2013 04:13 EDT
-
Very favourable impression[ Go to top ]
- Posted by: marc schipperheyn
- Posted on: July 13 2006 11:45 EDT
- in response to Frank Charles
I have been using Subversion and cvs both through Eclipse and Tortoise and my impressions have been very favourable indeed. Subversion is much faster and seems to handle binary files better. The one thing to get your head around is that revision numbering is totally different between subversion and cvs. Suversion uses a weird scheme where the entire repository is upped one revision on each individual commit (the kind of issue we like to call 'a feature' ;-) ). Once you accept that, Subversion is a great alternative and, dare I say it, replacement for cvs. Marc -
Re: Very favourable impression[ Go to top ]
- Posted by: Andrew Perepelytsya
- Posted on: July 13 2006 20:06 EDT
- in response to marc schipperheyn
Suversion uses a weird scheme where the entire repository is upped one revision on each individual commit (the kind of issue we like to call 'a feature' ;-) ). Once you accept that, Subversion is a great alternative and, dare I say it, replacement for cvs.
Marc, from your description it looks you haven't had a chance to appreciate this feature (and this is really a great feature, not a bug). When you do 3-4 concurrent branches of the project with regular releases (e.g. weekly), do continuous merging between them and after that have to stand the audit for the past 6 month - that's where you thank somewhere high in the skies you do not have to wrap your head around cvs anymore ;) And you forgot to mention the breadth of connectivity options Subversion has compared to cvs. Heads up :)
Marc -
Commit individual files or multifiles as one commit operation[ Go to top ]
- Posted by: Jerry Yang
- Posted on: July 13 2006 20:59 EDT
- in response to Andrew Perepelytsya
in CVS, when I commit many files for one 'bug', CVN does not have a clue on the interaction among these files. Does Subversion have this feature? Even better. any comparison between the two products? -
Atomic commits are the bomb[ Go to top ]
- Posted by: George Coller
- Posted on: July 14 2006 02:08 EDT
- in response to marc schipperheyn
I have been using Subversion and cvs both through Eclipse and Tortoise and my impressions have been very favourable indeed. Subversion is much faster and seems to handle binary files better. The one thing to get your head around is that revision numbering is totally different between subversion and cvs. Suversion uses a weird scheme where the entire repository is upped one revision on each individual commit (the kind of issue we like to call 'a feature' ;-) ). Once you accept that, Subversion is a great alternative and, dare I say it, replacement for cvs.
Subversion is much faster because it does much of the magic without having to go to the server. For instance it keeps a copy of every file under source local so when you do an undo it just uses the local copy instead of having to go back to the server. Subversion's "weird scheme" comes from having guaranteed atomic commits. Either the entire changeset gets committed or none of it. Why is this transactionality good? Well for one you are 100% sure of what was checked in and you are 100% sure that when you check out an old revision that it is an exact snapshot. This also leads to more bullet-proof branching and tagging. In fact to Subversion a branch is a tag is a branch - what I mean is that they are the same thing. When you do a tag you are tagging a changeset's revision, not just a files. When you branch you are simply saying that updates to that branch should not use changesets from another branch. E.g. Each Rn is a check in. R1 -- R2 ---R4 --- R8 --- R10 -- R11 \ / R3 --- R5 --- R9 \ R6 --- R7 Subversion also handles versioning of folders and the ability to check in meta-data on any folder or file. Subversion was written to be a replacement for CVS. Its vision statement was to fix and improve upon all of the painful parts of CVS. I've used it for several years now and find it vastly superior and easy to learn/use if you know CVS. If you are looking for a great and thin book on Subversion (or CVS) check out "Pragmatic Version Control": http://www.pragmaticprogrammer.com/titles/svn2/index.html ______________ George Coller DevilElephant
Marc -
Re: Atomic commits are the bomb[ Go to top ]
- Posted by: Erik van Oosten
- Posted on: July 14 2006 03:09 EDT
- in response to George Coller
This feature is indeed super. I only find one feature missing. Often I want to atomically commit a file set, but with different commit comments per file. -
Re: Atomic commits are the bomb[ Go to top ]
- Posted by: Guido Anzuoni
- Posted on: July 14 2006 08:06 EDT
- in response to Erik van Oosten
This feature is indeed super. I only find one feature missing. Often I want to atomically commit a file set, but with different commit comments per file.
May you would put comments about what was changed in the transaction. You can always set a specific property for that. Guido -
Re: Atomic commits are the bomb[ Go to top ]
- Posted by: George Coller
- Posted on: July 14 2006 10:14 EDT
- in response to Erik van Oosten
This feature is indeed super. I only find one feature missing. Often I want to atomically commit a file set, but with different commit comments per file.
Yeah, I think that would need to be done by convention as opposed to explicit tool support. With TortoiseSVN it is easy to paste in a list of all the files changed in a changeset so it would be easy to comment on each within the single changeset comment. Since each file and folder can have its own metadata I suppose you could store comments there. Every file could have a property "comment" that gets updated before each change set. SVN's command line tools would make it relatively trivial to make simple tools to accomplish this: * clean out all "comment" properties across the code base after a checkout/update * add a file/folder comment with one command It's nice to know that Subversion as a versioning framework supports these kinds of custom requirements. Just need to get the change request going on your favorite SVN client or build it yourself. ______________ George Coller DevilElephant -
Subclipse problem[ Go to top ]
- Posted by: Steven Peh
- Posted on: July 17 2006 00:26 EDT
- in response to George Coller
Problem with subclipse is it does do atomic commits accross projects in eclipse (back when I was using it late last year) even though the projects are actually subfolders/modules within a single repository in Subversion (i.e. we have Main.core and Main.util both checked in under the Main repository and checked out via Main). So we switched to IDEA where we imported each module as.. a module and atomic commits works across modules. In eclipse land its projects within workspace, whereas in IDEA land its modules in projects which seems a lot saner and works out of the box. -
Re: Subclipse problem[ Go to top ]
- Posted by: Steven Peh
- Posted on: July 17 2006 00:26 EDT
- in response to Steven Peh
Problem with subclipse is it does do atomic commits accross projects in eclipse (back when I was using it late last year) even though the projects are actually subfolders/modules within a single repository in Subversion (i.e. we have Main.core and Main.util both checked in under the Main repository and checked out via Main). So we switched to IDEA where we imported each module as.. a module and atomic commits works across modules. In eclipse land its projects within workspace, whereas in IDEA land its modules in projects which seems a lot saner and works out of the box.
Well I mean subclipse doesn't do atomic commits across projects. -
atomic commits across projects[ Go to top ]
- Posted by: Christian Sell
- Posted on: July 17 2006 04:33 EDT
- in response to Steven Peh
that is indeed an issue that still remains with the current version. I agree that it should be adressed Christian -
Re: atomic commits across projects[ Go to top ]
- Posted by: Mark Hewett
- Posted on: July 17 2006 22:30 EDT
- in response to Christian Sell
I could be wrong, but I believe that if you are using JavaSVN rather than JavaHL then Subclipse will do atomic commits across projects. -
Re: atomic commits across projects[ Go to top ]
- Posted by: B C
- Posted on: July 21 2006 05:31 EDT
- in response to Christian Sell
If eclipse does ANYTHING right, Call the cheerleaders man! Cant believe your beefed about functions that dont work. Thats why its called ECLIPSE MAN. It doesnt work! (But we got syntax highlighting) WOOOHOOOO! -
breaks my eclipse all the time.....[ Go to top ]
- Posted by: Emerson Cargnin
- Posted on: July 14 2006 12:05 EDT
- in response to marc schipperheyn
subclipse, although very good, breaks my eclipse all the time, and I used different (stable) version already. Now I'm using callisto, with callisto version of subclipse, but even then, it keeps breaking... : ENTRY org.tigris.subversion.subclipse.core 4 -6 2006-07-14 15:42:04.943 !MESSAGE org.tigris.subversion.javahl.ClientException: Working copy not locked; this is probably a bug, please report svn: Working copy 'C:\svn_yelldotcom\com.yell2' is missing or not locked !STACK 0 org.tigris.subversion.svnclientadapter.SVNClientException: org.tigris.subversion.javahl.ClientException: Working copy not locked; this is probably a bug, please report svn: Working copy 'C:\svn_yelldotcom\com.yell2' is missing or not locked at org.tigris.subversion.svnclientadapter.javahl.AbstractJhlClientAdapter.getStatus(AbstractJhlClientAdapter.java:453) at org.tigris.subversion.subclipse.core.client.PeekStatusCommand.execute(PeekStatusCommand.java:60) at org.tigris.subversion.subclipse.core.resources.SVNWorkspaceRoot.peekResourceStatusFor(SVNWorkspaceRoot.java:279) at org.tigris.subversion.subclipse.core.SVNTeamProvider.setProject(SVNTeamProvider.java:143) at org.eclipse.team.core.RepositoryProvider.mapNewProvider(RepositoryProvider.java:207) at org.eclipse.team.core.RepositoryProvider.mapExistingProvider(RepositoryProvider.java:236) at org.eclipse.team.core.RepositoryProvider.getProvider(RepositoryProvider.java:462) at org.eclipse.team.internal.core.TeamHookDispatcher.getProvider(TeamHookDispatcher.java:97) at org.eclipse.team.internal.core.TeamHookDispatcher.getRuleFactory(TeamHookDispatcher.java:105) at org.eclipse.core.internal.resources.Rules.factoryFor(Rules.java:87) at org.eclipse.core.internal.resources.Rules.refreshRule(Rules.java:152) at org.eclipse.core.internal.resources.Resource.refreshLocal(Resource.java:1394) at org.eclipse.core.internal.refresh.RefreshJob.runInWorkspace(RefreshJob.java:141) at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58) Caused by: org.tigris.subversion.javahl.ClientException: Working copy not locked; this is probably a bug, please report svn: Working copy 'C:\svn_yelldotcom\com.yell2' is missing or not locked at org.tigris.subversion.javahl.SVNClient.status(Native Method) at org.tigris.subversion.javahl.SVNClient.status(SVNClient.java:114) at org.tigris.subversion.svnclientadapter.javahl.AbstractJhlClientAdapter.getStatus(AbstractJhlClientAdapter.java:442) ... 14 more -
POLARION[ Go to top ]
- Posted by: Brian Greene
- Posted on: July 14 2006 15:55 EDT
- in response to Emerson Cargnin
So, polarion isn't an open source tool (completely), and is meant to hook you into the company's commercial server, but the subversion plugin it free, and quite nice. I used subclipse for well over a year before discovering polarion, and I'll never go back. It is far more of the goodness I was used to with the CVS plugin - with my favorite SCS. -
Re: breaks my eclipse all the time.....[ Go to top ]
- Posted by: Carfield Yim
- Posted on: July 19 2006 00:56 EDT
- in response to Emerson Cargnin
Good? Are you sure? Even it breaks your eclipse from time to time? I think they really really need to add automatic testcases... -
Eclipse Subversive project[ Go to top ]
- Posted by: Sean Sullivan
- Posted on: July 13 2006 11:55 EDT
- in response to Frank Charles
fyi http://www.eclipse.org/proposals/subversive/The Subversive project is a proposed open source project under the Eclipse Technology Project. This proposal is in the Project Proposal Phase (as defined in the Eclipse Development Process document) and is written to declare its intent and scope. This proposal is written to solicit additional participation and input from the Eclipse community. You are invited to comment on and/or join the project. Please send all feedback to the news://news.eclipse.org/eclipse.technology.subversive newsgroup. The goal of project is to create a Subversion plug-in for Eclipse (Platform SVN Integration) with functionality similar to the Eclipse CVS Team project (Platform CVS Integration). After gathering wide community acceptance and reaching a sufficient maturity level, it is anticipated that Subversive will become part of the core Eclipse platform.
-
Re: Eclipse Subversive project[ Go to top ]
- Posted by: Mike Youngstrom
- Posted on: July 13 2006 15:37 EDT
- in response to Sean Sullivan
I personally prefer subversive to subclipse. Mike -
Re: Eclipse Subversive project[ Go to top ]
- Posted by: Alexandre Poitras
- Posted on: July 13 2006 17:39 EDT
- in response to Mike Youngstrom
I personally prefer subversive to subclipse.
I haven't tried subversise but I have faced couple of issues with Subclipse (for instance my projects appear 2x times in team synchronizing) so usually I stick to the command line. I should give it a try.
Mike -
Re: Eclipse Subversive project[ Go to top ]
- Posted by: Mark Davis
- Posted on: July 13 2006 18:05 EDT
- in response to Mike Youngstrom
I personally prefer subversive to subclipse.
Can you explain why? I tried subversice 6 months ago and it was too buggy for productional usage. the things I need in subclipse: - when I update working copy I want to click in a file listed in console and see the changes dialog - TortoiseSVN like log menu --Mark
Mike -
Tried Subversive[ Go to top ]
- Posted by: Carl Phillips
- Posted on: July 14 2006 10:27 EDT
- in response to Sean Sullivan
I tried Subversive, but it doesn't appear to accept a local file url like "file:///C:/Offline/workspace." This does work in Subclipse. -
And here is how you do it in JDeveloper[ Go to top ]
- Posted by: shay shmeltzer
- Posted on: July 13 2006 17:55 EDT
- in response to Frank Charles
While we are on the subject of Subversion with IDE's here is the introduction of how you do this with the subversion extension to Oracle JDeveloper: http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/exchange/subversion/subversion.html -
subersion is badly integrated that some try to develop their own[ Go to top ]
- Posted by: francois montmasson
- Posted on: July 13 2006 18:25 EDT
- in response to Frank Charles
Personnaly, I find Subclipse so unusable each time I try it in Eclipse that I change my IDE to IntelliJ IDEA -
Comparison[ Go to top ]
- Posted by: Steve Benigan
- Posted on: July 13 2006 21:30 EDT
- in response to Frank Charles
Is there a comparison of subclipse and subversive or can people describe why they use one over the other? As for subversion, it has been by far the best to me. Others have features here and there that are important but for speed, ease of use, and reliability, I wouldn't choose anything else. SCM Comparison http://better-scm.berlios.de/comparison/comparison.html PS The common arguments against subversion mostly go away when you actually use it. I never want to use CVS again... or ClearCase, MKS, Perforce, VSS, and the list goes on. If you are looking for an integrated system on the lines of MKS, look at Polarion (polarion.com). It's subversion backed and it's very very cool. -
Re: Comparison[ Go to top ]
- Posted by: Gian G
- Posted on: July 14 2006 11:58 EDT
- in response to Steve Benigan
Actually there isn't any public comparison around... You can have a look at Daniel Spiewak's blog, where he compares these two SVN (Eclipse plugin) client (but rather his opinions, than some complete comparison): http://www.jroller.com/page/djspiewak?entry=subversive_and_subclipse I personally prefer Subversive, having used both... After the initial phase, it seems to be more stable, now. And Polarion guys are spending a lot of efforts in supporting SVN. -
Re: How to use Subversion with Eclipse[ Go to top ]
- Posted by: Andrew Clifford
- Posted on: July 13 2006 22:24 EDT
- in response to Frank Charles
I have been using subclipse for a while now with no problems. The Systems group uses TortoiseSVN for deployments/config mgmt. Slick. Even non-technical BAs can use TortoiseSVN to version documentation with no significant learning curve. It's fast, acid, and a step up from CVS/VSS. -
Re: How to use Subversion with Eclipse[ Go to top ]
- Posted by: Basil Vandegriend
- Posted on: July 13 2006 23:24 EDT
- in response to Frank Charles
I've definitely found Subversion to be much nicer than CVS. I consider the version # per entire repository to be a feature, not a bug. I've recently started using Subclipse inside Eclipse for the SVN client; formerly I was using TortoiseSVN. Both are good clients, but I like Subclipse better. I did encounter a few difficulties - see my article on my experience with subversion for more details. -
TortoiseSVN is essential.[ Go to top ]
- Posted by: George Coller
- Posted on: July 14 2006 02:14 EDT
- in response to Frank Charles
IDE integration is nice for check-in and checkout but I find the tool TortoiseSVN essential. Just covers more of the SVN features and is very easy to use. It is a must have unless you are a command-line SVN guru (which isn't really that hard either) Wish they made it for "OS X" too - bastards. ______________ George Coller DevilElephant -
Re: TortoiseSVN is essential.[ Go to top ]
- Posted by: Dean Schulze
- Posted on: July 14 2006 10:02 EDT
- in response to George Coller
IDE integration is nice for check-in and checkout but I find the tool TortoiseSVN essential. Just covers more of the SVN features and is very easy to use. It is a must have unless you are a command-line SVN guru (which isn't really that hard either)
TortoiseSVN is also essential because not everything that you want to keep in SVN is in an Eclipse project. TortoiseSVN and Subclipse make a good team on Windows, but on Linux/UNIX I guess you would have to use the command line for files that are not in an Eclipse project. -
Re: TortoiseSVN is essential.[ Go to top ]
- Posted by: George Coller
- Posted on: July 14 2006 10:17 EDT
- in response to Dean Schulze
TortoiseSVN and Subclipse make a good team on Windows, but on Linux/UNIX I guess you would have to use the command line for files that are not in an Eclipse project.
I'd be surprised that no Subversion client exists for Linux. But like "OS X" there isn't anything as slick as TortoiseSVN. These are small gripes I think since SVN is relatively new. As it catches on I think better tools and integration will follow. Command line is very powerful and doesn't take much to master. Can always write some project-specific scripts to make life easier too. ______________ George Coller DevilElephant -
Re: TortoiseSVN is essential.[ Go to top ]
- Posted by: Guido Anzuoni
- Posted on: July 14 2006 11:22 EDT
- in response to George Coller
I'd be surprised that no Subversion client exists for Linux.
Not so rich as TortoiseSVN, but AFAIK Subcommander runs on Linux. There is also something integrated into KDE and GNOME (more or less in incubation). Obviously, SmartSVN runs on Linux as well. Guido -
Another article about Subclipse.[ Go to top ]
- Posted by: Eugene Kuleshov
- Posted on: July 14 2006 08:06 EDT
- in response to Frank Charles
Here is another article about Subclipse. It is older, but there is section about how to configure development environment and start hacking Subclipse code. Also note that Subclipse team has prepared own proposal for Eclipse and it is soon going to be submitted to Eclipse. -
JavaSVN[ Go to top ]
- Posted by: Robert Hayes
- Posted on: July 14 2006 19:27 EDT
- in response to Frank Charles
Just thought I'd throw this out there for people having SVN integration problems... I've had problems with javahl in the past. I've used JavaSVN where possible (ex: JDeveloper and CruiseControl) and things seem to run smoothly. -
Re: How to use Subversion with Eclipse[ Go to top ]
- Posted by: B C
- Posted on: July 21 2006 05:27 EDT
- in response to Frank Charles
Actually, from the beginning, Eclipses CVS support didnt work at all but thanks for the marketing! -
Re: How to use Subversion with Eclipse[ Go to top ]
- Posted by: B C
- Posted on: July 21 2006 05:29 EDT
- in response to Frank Charles
Its so easy we have to forum IT Man its so easy! -
eclipse[ Go to top ]
- Posted by: l esca
- Posted on: December 17 2012 01:17 EST
- in response to Frank Charles
great technique to the subversion of Eclipse
-
hi[ Go to top ]
- Posted by: Matt Coleman
- Posted on: April 03 2013 03:44 EDT
- in response to Frank Charles
great advice on Subservision
-
hi[ Go to top ]
- Posted by: Matt Coleman
- Posted on: May 20 2013 04:02 EDT
- in response to Frank Charles
Subversion with Eclipse is great bar back -
hello[ Go to top ]
- Posted by: Matt Coleman
- Posted on: May 20 2013 04:08 EDT
- in response to Matt Coleman
such a great thing to happen bar back -
hello[ Go to top ]
- Posted by: Matt Coleman
- Posted on: May 20 2013 04:13 EDT
- in response to Frank Charles
now i know how to use it bar back