SVN

From Dokeos

Jump to: navigation, search

The Dokeos developers have switched from CVS to SVN for version control. Here is some info to get started.

Contents

General

Our repository - which has several branches - is located at https://svn.sourceforge.net/svnroot/dokeos

You can see the repository (read-only view- through the web: http://svn.sourceforge.net/viewvc/dokeos/

We advise you to check out parts of the repository instead of everything at once, to speed things up.

Checking out

https://dokeos.svn.sourceforge.net/svnroot/dokeos/trunk

gives you just the trunk, not the other branches. Check out

https://dokeos.svn.sourceforge.net/svnroot/dokeos/branches/DOKEOS_COMMUNITY_2_1_BRANCH/

to get the community release 2.1 branch. Similarly, for the Dokeos 1.6.x branch and the Dokeos LCMS branch:

https://dokeos.svn.sourceforge.net/svnroot/dokeos/branches/DOKEOS_1_6_STABLE_BRANCH/
https://dokeos.svn.sourceforge.net/svnroot/dokeos/branches/DOKEOS_LCMS/

Want to test?

You can easily create a project on https://opensvn.csie.org/ in which you can play around and test with Subversion. Or you can also use our sandbox.

Connecting to our Dokeos SVN repository

Migration

https://sourceforge.net/docman/display_doc.php?docid=31070&group_id=1#import

For other general migration articles :

Copying code between branches

Example: copying a folder from the community release to the trunk:

svn copy https://dokeos.svn.sourceforge.net/svnroot/dokeos/branches/DOKEOS_COMMUNITY_2_1_BRANCH/dokeos/plugin/messages/ https://dokeos.svn.sourceforge.net/svnroot/dokeos/trunk/dokeos/plugin/messages/ --message "copying cr.21 messages plugin to dokeos 1.8" --username your_username

This could also be done by just copying the folder in your OS and then committing the files, but this way we don't lose version history.

Applying an existing revision to a different place

Example: add a bugfix (revision 9388) from the trunk to the community 2.1 branch

(working dir = directory that contains DOKEOS_COMMUNITY_2_1_BRANCH svn directory)

svn merge -r 9387:9388 https://dokeos.svn.sourceforge.net/svnroot/dokeos/trunk/dokeos/main/document/downloadfolder.inc.php DOKEOS_COMMUNITY_2_1_BRANCH/dokeos/claroline/document/downloadfolder.inc.php --username dev_name

Renaming a file

SVN allows you to rename a file, not loosing its history, by cumulating *svn copy* and *svn remove* on the same file.

Software

Windows

  • Eclipse with Subclipse plugin
  • TortoiseSVN note:If you want to test using SVN, without needing to access with external repositories (like https://opensvn.csie.org/), you can very easily create a "local SVN repository" using right-mouse-button on a folder, selecting TortoiseSVN -> Create Repository here. This will create the necessary folders for a complete repository. Next, you can use an "import" to add initial files to this repository. Mind you, it might be a bit confusing with both the repository and the "local working copy" on your localhost, but still it can come in handy.
  • SmartSVN

Linux

Most of this software should be available through your package manager

See also

Useful scripts

Personal tools