subversion

quick mercurial setup guide for SVN veterans

Wednesday, November 10th, 2010 | Tech-savvy | 2 Comments

So you remember the times you thought using CVS was sooo 1337. Then SVN came around and proclaimed to be “CVS done right”. Today distributed version control systems like Git or Mercurial are becoming more and more “standard”. So it may be time to go next level …

Learn Mercurial, trust Mercurial, and figure out how to do things the Mercurial way, and you will move an entire generation ahead in source code control. Joel Spolsky

This post is intended to somewhat guide an SVN experienced user to set up a Mercurial working environment (the way I like it) rather than explaining the concepts of the system.

› Continue reading

Tags: , ,

eclipse IDE Subversion integration – Galileo still foobared

Sunday, July 19th, 2009 | IDE, Java, Tech-savvy | No Comments

eclipseAnother post on getting your subversion running in eclipse – this time it’s the brand new Galileo release.

To cut a long story short: SVN integration is still a manual tedious process. I don’t want to complain too much this time, now that I know it’s because of legal issues eclipse is not coming with an out of the box SVN support – even though the Subversive team provider is part of eclipse, the connectors cannot be published together with Subversive because the eclipse legal rules don’t support the connectors’ license, just Google it for more information)

So here is how you do it:

Help ->  Install New Software… -> Galileo -> Collaboration -> Subversive SVN Team Provider (Incubation)

Help ->  Install New Software… -> Add -> http://community.polarion.com/projects/subversive/download/eclipse/2.0/galileo-site/ -> SVN Connectors

Install all or just the connector you really need, my favourite one is SVN Kit, because it works fine and has svn+ssh:// support.

If you chose to install all connectors you can change the implementation in Window -> Preferences -> Team -> SVN

Tags: , , ,

eclipse IDE Subversion integration – Ganymede SR2 still foobared

Friday, May 15th, 2009 | IDE, Java, Tech-savvy | 5 Comments

Today I set up a fresh dev environment, and guess which step made my stray again? Right, the frickin’ SVN connection. I reread my own blog post to set it up, but even though I am (just) using the current service release of the eclipse Ganymede release I am stuck again!

First, the “Subversive SVN Team Provider” URL is no longer provided by the software update process. Come one guys, why are you making the process even worse?

After installing the Subversive plug-in and the SVN Kit connector I restarted the IDE – but I got

Selected SVN connector library is not available or cannot be loaded.

I didn’t dig too deep after that, this issue took away far too much spare time already, so I just installed the whole “Subversive SVN Connectors” tree.  Still no connector available in Window – Preferences – Team – SVN – SVN Connectors. The dropdown list is just plain empty. This is really freaking me out… damn, I just want to work!

After that I installed all the stuff both the SVN Connectors and the Subversive site offered. Still no luck. This sucks big time! I’ll now consult Google trying to find some blog post similar to the one I wrote for the initial Ganymede release.

Okay, done it. Solution: clean install (unpack) of eclipse Ganymede SR2, add both the SVN Connectors as well as the Subversive update sites:

Install (I installed them all at once):

  • Subversive Site => Subversive SVN Team Provider Plugin (Incubation) => Subversive SVN Team Provider (Incubation)
  • SVN Connectors Site => Subversive SVN Connectors => Subversive SVN Connectors
  • SVN Connectors Site => Subversive SVN Connectors => SVNKit 1.2.2 Implementation (Optional)

Restart eclipse. After that I was good to go! Easy when you know how it’s done! ;) Thanks to Universität Karlsruhe for providing the information. Another hour wasted for no good reason. Anybody tried the brand new M7 of eclipse Galileo already?

Tags: , , ,

eclipse Subversive oddity: don’t commit on a tag – unless it is not a tag!

Monday, March 2nd, 2009 | IDE, Java, Tech-savvy | No Comments

After using the recent eclipse Ganymede release with the provided Subversion connection (@see eclipse IDE Subversion integration – a pain every single time) for some time I came across an oddity that I blogged about on my company’s blog.

eclipse complains about you trying to commit on a tag even if you are not working on a tag (who does, anyway?) – you just have to use subversion keywords in your package names to get a nasty nag screen every time you try to commit your work. Why should you do that anyway? Get the answer to this question and the explanation why this oddity happens reading this article at codecentric‘s blog (provided in both English and German).

Tags: , , ,

eclipse IDE Subversion integration – a pain every single time

Thursday, December 4th, 2008 | IDE, Java, Tech-savvy | 17 Comments

Okay, assume you just downloaded the new eclipse j2ee ide and want to connect to your svn repository. Fiddlesticks!

You’ve been here before. Not sure whether to use Subclipse or Subversive? And what about the SVN provider? SVN Kit, JavaHL native? Bollocks!

Never change a running… err, eclipse installation. (Don’t take me wrong. I simply loooove the eclipse IDE. Strg-1/Space anyone? Alt-Shift-T??)

I don’t know whether this will help anyone, but in the next couple of lines I want to give a guideline to set up Subversion for eclipse (Ganymede it is).

What will follow is the diary version of my problem, if you just want the solution go to the very end of this post.

First, I mainly work with two kinds of repositories: SVN over HTTP/HTTPS and SVN over SSL with private key authentication – not all connectors provide these methods (e.g. JavaHL doesn’t support svn+ssh://).

I know that one of the SVN eclipse projects is becoming a part of eclipse, so I check the “Ganymede” tree in the “Help” – “Software Updates…” menu and open “Collaboration Tools”. Nice, I found the “Subversive SVN Team Provider”. Click.

Yes, Subversive is part of the official Ganymede release, though still in “Incubation” state. So let’s forget about Subclipse, shall we?

After that, we have to install a connector. Let’s see, the Subversive user guide states

In order to work with SVN the plug-in user should also install one of SVN connectors, which are distributed from different update-site through the legacy reasons. The plug-in won’t work without SVN Connectors.

Slightly upset I follow the link to the installation instructions… okay, I am not upset yet because I already knew the connectors issue.

The installation instructions tell me:

Proper URL can be found at http://www.eclipse.org/subversive/downloads.php

I go there, after finding the proper version that I am using I read:

Visit external site to get Subversive SVN Connectors (http://www.polarion.com/products/svn/subversive.php?src=eclipseproject)

I go there, too, becoming seriously annoyed by the installation process… locating the Ganymede Release.

Subversive SVN Connectors (http://www.polarion.org/projects/subversive/download/eclipse/2.0/ganymede-site/)

Back in the IDE, I open the “Available Software” tab again to add a site. After that, I decide to go for the Native JavaHL 1.5 implementation.

The workbench reloads, I open “Preferences” – “Team” – “SVN” to check whether the connector is chosen properly. I see a blank drop down. Yikes! Opening it I get

Native JavaHL (0x00100000: Cannot load libraries: no libdb44 in java.library.path)

I take a deep breath. Focus. I already consumed one bottle of hop’s brew without even getting started. This will be the last time, ’cause I blog. Next time I’ll just look it up. I’ll get another bottle and try to figure the error out.

Next, I also install the Subversive SVN Connectors feature. Same problem.
After that, I install the whole fricking Subversive SVN Connectors’ tree. It works.

Next I set up my repositories. HTTPS works fine, the svn+ssh connection doesn’t.

These setting are not available for the chosen SVN connector. See the ‘SVN’ Preferences page.

You bet I will. I go for the latest SVN Kit connector. This time I can enter the svn+ssh location settings without a problem and I am good to go, all is set up properly! :P


Synopsis:

Install Ganymede “Subversive SVN Team Provider” (URL already provided)
Get the connectors’ update site URL at http://www.eclipse.org/subversive/downloads.php and make sure to choose the right version.
Open the “Subversive SVN Connectors” tree.
Choose “SVN Kit” (latest version, probably) as the connector.


To sum it up: I am looking forward to the times when a descent SVN connection is part of eclipse IDE right out of the box. Let’s wait and see!

Tags: , , , ,

Search

Categories