Moodle with Netbeans, SVN, and CVS

Moodle with Netbeans, SVN, and CVS

Scott Karren -
回帖数:4

So I am new to Moodle development and have been updating my Moodle install via CVS for some time now.  The organization that I work for uses SVN for version control and I have been using Netbeans to do development.  Is there an easy way to keep Moodle up to date with CVS, maintain a version controlled copy of that updated Moodle in SVN and sort the two different systems in Netbeans so I don't end up with a bleeping mess everytime.  I know that Netbeans supports both CVS and SVN, I am just not sure how to use both systems or if I can use both systems and avoid conflicts.  Any help would be appreciated.

Scott Karren

回复Scott Karren

Re: Moodle with Netbeans, SVN, and CVS

Tim Hunt -
Core developers的头像 Documentation writers的头像 Particularly helpful Moodlers的头像 Peer reviewers的头像 Plugin developers的头像
Leaving aside the "you should use git" evangelism for now, you can
  1. Check out moodle from CVS.
  2. Check all of that, including all the CVS metadata directories, in to your subversion repository.
  3. Now create a separate branch for your local customisations, and do all your local development there. Keep the trunk branch for the official Moodle release.
When you want to incorporate a new version of Moodle:
  1. Checkout the trunk branch from your SVN.
  2. Do a CVS update.
  3. Do a SVN commit.
  4. Go back to your development branch. Do a merge of the changes from trunk.
回复Tim Hunt

Re: Moodle with Netbeans, SVN, and CVS

Jeff Forssell -
While we're digesting the suggestions above, I just thought I'd throw in some links to see if anyone can see if they are useful or wastes of time:

A tutorial about Netbeans and SVN (using a java example:
http://jamesselvakumar.wordpress.com/2008/04/07/subversion-and-netbeans-a-quick-start-guide/
Something I wonder about in it, after a quick glance, is
requirements (for NetBeans 6.0 6.1):
  • Subversion
  • TortoiseSVN
I downloaded a SVN plugin with netBeans 6.5 (but I haven't touched it), and I'm wondering if I need these others too.

A "git" plugin for netbeans (and a free git repository):
http://www.notgeeklycorrect.com/english/2008/10/01/nbgit-the-git-plugin-for-netbeans/
回复Tim Hunt

Re: Moodle with Netbeans, SVN, and CVS

Scott Karren -

Tim

Thanks for your suggestions.  With regards to git, I have never used it before and the only exposure to it is what I have read about on these forums.  I would still be required to use SVN on the institutional side but could I replace my CVS updates with git? Would there be any advantage to doing it this way, if so what are those advantages?

Scott

回复Scott Karren

Re: Moodle with Netbeans, SVN, and CVS

Tim Hunt -
Core developers的头像 Documentation writers的头像 Particularly helpful Moodlers的头像 Peer reviewers的头像 Plugin developers的头像
If you have to use SVN, well that is a pretty good version control system. And you have to use CVS to interoperate with the Moodle repository, so I would not worry about bringing a third system into the picture yet.

However, if you are interested, add "Pragmatic version control with git" to your list of books to read when you have spare time.