• 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Getting started with Subversion in Netbeans

 
Ranch Hand
Posts: 441
Scala IntelliJ IDE Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I'm fairly new to NetBeans and am looking for some version control so I can go back and look at old versions of my code should I wish, and as a back-up.

I read that Subversion is the way to go, and apparently it's built-in to versions 6.8 and higher of NetBeans.

Can anyone offer me any pointers on how to get started? All the information I've found via Google seems to relate to older (non-built-in) versions, and even the NetBeans help files seem out of date.

I've read I need to activate it in the plug-ins, but it already appears to be activated (I click the tickbox and the only option is "de-activate".



So how do I set up a repository and how do I check in my projects?

Thanks for any help!
 
Luigi Plinge
Ranch Hand
Posts: 441
Scala IntelliJ IDE Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think you have to download some extra software from a third party in order to create a repository, which nobody tells you about.

I stumbled across something called Sliksvn in the internet which I downloaded and installed and got running in the command line. It was like a 5 MB download, just to run one command which created a few folders and database file. I don't think I'll need it again since NetBeans has all the necessary functionality built in.

Quite an omission, IMO, and frustrating and time-wasting. Why include 99% of the code but leave out the 1% so you have to download the whole lot from somewhere else?

Unless, of course, I'm doing it wrong, but I wouldn't know because the documentation is out-of-date and no-one here seems to know either.
 
Ranch Hand
Posts: 433
Netbeans IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Which documentation are you referring to? The Netbeans documentation states clearly that it only provides funcionality to access an existing repository (http://netbeans.org/kb/docs/ide/subversion.html#ensuring) and names also the reasons for that.
I guess a lot of people know that here. But I guess those were not reading your post within this 7 hours you found it out yourself.
Due to the fact that subversion is MORE than just checking in and out, I recommend to read the official documentation: http://svnbook.red-bean.com/en/1.5/index.html
 
Luigi Plinge
Ranch Hand
Posts: 441
Scala IntelliJ IDE Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I read the guide that you quote, and went to the command line and tried to use svnadmin, but just got the message saying it wasn't recognized as a command. There are no clues as to where you need to get it from. Also the Help files in NetBeans itself were no more helpful. I think I even came across the official svn documentation that you quote as well, but that doesn't tell you how to get it or provide any links either!

A case of easy when you know how I guess, but not to someone who hasn't used it before.
 
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

Luigi Plinge wrote:went to the command line and tried to use svnadmin, but just got the message saying it wasn't recognized as a command.


Did you install Subversion? If not, download and install it. If you have, add the Subversion bin directory to your PATH.
 
author & internet detective
Posts: 41083
848
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

Luigi Plinge wrote:I think you have to download some extra software from a third party in order to create a repository, which nobody tells you about.


Right. The built in part in NetBeans is for accessing an existing repository. It doesn't handle the server/admin side of repositories.
 
Luigi Plinge
Ranch Hand
Posts: 441
Scala IntelliJ IDE Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In case anyone else needs to find it, the stuff you need do download can be found here: http://subversion.apache.org/packages.html.
 
expectation is the root of all heartache - shakespeare. tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic