Difference between revisions of "Subversion"

From Cncz
Jump to: navigation, search
([Getting Started])
(actuele status toegevoegd)
 
(34 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[nl]
+
[nl]<big>svn.science.ru.nl is uitgezet! De opvolger van onze Subversion service is [[GitLab]]!</big>[/nl]
Deze pagina is in ontwikkeling.
+
[en]<big>svn.science.ru.nl has been turned off! [[GitLab]] is the successor of our Subversion service!</big>[/en]
[/nl]
+
----
[en]
 
This page is under construction.
 
[/en]
 
==[Introductie][Introduction]==
 
[[Bestand:subversion.png|thumb|alt=Subversion logo|Subversion]]
 
  
[nl]
+
== Migrating from Subversion to Gitlab ==
Subversion (SVN) is een revisiebeheersysteem waarmee het mogelijk is om bestanden met een of meerdere gebruikers te delen.
+
We have automated the migration from [https://en.wikipedia.org/wiki/Apache_Subversion Subversion] to GitLab. Contact postmaster@science.ru.nl if you wish to have clone access to your migrated repository.
  
Hoewel de doelgroep van SVN voornamelijk in de software ontwikkeling zit, is het ook mogelijk om subversion te gebruiken voor het beheren van allerhande bestandssoorten.
+
== Manual migration from Subversion to Gitlab ==
 +
Inspired by [https://gist.github.com/leftclickben/322b7a3042cbe97ed2af this short manual], an SVN to git conversion could boil down to something like:
  
We hebben voor FNWI een eigen subversionserver ingericht. Hierop staat ook administratieve software voor het beheer van repositories en gebruikersaccounts.
+
<syntaxhighlight lang="bash">
[/nl]
+
cd /tmp/
 +
git svn clone --no-metadata -A users.txt https://svn.science.ru.nl/repos/myproject
 +
cd myproject
 +
git remote add gitlab git@gitlab.science.ru.nl:yourscienceloginname/myproject.git
 +
git push --set-upstream gitlab master
 +
</syntaxhighlight>
  
[en]
+
Git URLs (https and ssh) are shown on the top of the project page in gitlab.
Subversion (SVN) is an open source revision control system that allows one or
+
The generic repository URL for the [[Subversion|science SVN server]] is:
more users to easily share and maintain collections of files.
 
  
Although SVN focusses on the software development community it is very well
+
<code>https://svn.science.ru.nl/repos/{repository}</code>
possible to use it as a general purpose centralized system for sharing and
 
maintaining information contained in all kinds of data files.
 
  
We have set up a [https://svn.science.ru.nl/ subversion server for FNWI]
+
And for CS:
including an administrative interface to manage repositories and repository
 
users.
 
[/en]
 
  
==Getting Started==
+
<code>https://svn.cs.ru.nl/repos/{repository}</code>
  
[nl]
 
Voor het gebruik van de subversionserver heeft u de volgende zaken nodig:
 
* De URL van de repository;
 
* een SVN gebruikersnaam en wachtwoord;
 
* een SVN client applicatie.
 
[/nl]
 
Neem [mailto:postmaster@science.ru.nl contact op met C&CZ] om een repository aan te maken en een eigenaar toe te wijzen.
 
  
[en]
+
You can also see this for public svn repositories on https://svn.science.ru.nl (viewing private repositories requires authentication).
To be able to use our SVN server you need the following:
 
  
* The URL of the repository;
+
== Migrating to a private SVN repository ==
* an SVN username and password;
+
It is possible to continue to use subversion for your personal repository. In that case, you C&CZ can help you move your repository off the svn server to your home directory. From that point, you can access the repository via one of the [[Hardware_servers#Linux_.5Bloginservers.5D.5Blogin_servers.5D|login servers]].
* an SVN client installed on your computer.
 
  
[mailto:postmaster@science.ru.nl Contact C&CZ] to create a repository and appoint an owner.
+
== Old Subversion wiki page ==
[/en]
+
[nl]De oude subversion wiki pagina is [[OldSubversionPage|hier]] gearchiveerd.[/nl]
 
+
[en]The old subversion wiki page is archived [[OldSubversionPage|here]][/en]
===[De repository][The Repository]===
 
 
 
[nl]
 
[/nl]
 
[en]
 
For remote access to our SVN repository the HTTPS protocol is used. The web address (or URL) of our repositories is typically of the form:
 
{| border="1"
 
|-
 
|<nowiki>https://svn.science.ru.nl/repos/{repository name}</nowiki>
 
|}
 
[/en]
 
 
 
===[Authenticatie en autorisatie][Authentication and Authorization]===
 
[en]
 
A subversion user can be owner of one or more repositories. Repository owners can grant user read or read-write access to the repository. New svn user accounts can be created if necessary. Account details such as your full name, email address and password can be changed through the web interface:
 
https://svn.science.ru.nl
 
[/en]
 
 
 
[nl]
 
[/nl]
 
[en]
 
====Repository Owners====
 
We urge repository owners to use science account names for users who already have a science account and to use account names starting with an underscore (_) for external users:
 
{| border="1"
 
|+svn usernames
 
|-
 
!for science users
 
!external users
 
|-
 
|{science username}
 
|_{username}
 
|}
 
 
 
====Repository Users====
 
If you have a science login name, the repository owner should have created an account for you with the same account name. At the moment your SVN and science accounts are not connected, i.e. you can change the passwords of both independently.  In the future this will probably change.
 
 
 
When you first connect to  the repository your SVN client will prompt you for your account name and
 
password.  Most SVN clients will store/remember your credentials for subsequent repository access.
 
[/en]
 
 
 
===SVN client software===
 
For all major platforms, the svn command line client is either available as part of the distribution or can [http://subversion.apache.org/packages.html downloaded seperately].
 
To determine if you have subversion installed on your system, type:
 
$ svn --version
 
 
 
There are many graphical clients available, which are perhaps easier or more intuitive to use.
 
 
 
====Graphical SVN clients====
 
{| border="1"
 
|+Suggested Graphical SVN clients
 
|-
 
!Platform
 
!Application
 
!at FNWI
 
!Description
 
|-
 
|Windows
 
|[http://tortoisesvn.net/ TortoiseSVN]
 
|Optional for [[Windows_beheerde_werkplek| Managed PC's]]
 
|TortoiseSVN is a Windows shell extension, which gives feedback on the state of versioned items by adding overlays to the icons in the Windows Explorer. Repository commands can be executed from the enhanced context menu provided by Tortoise; GPL license.
 
|-
 
|Linux
 
|rowspan=2 |[http://www.rapidsvn.org/ RadpidSVN]
 
|Ubuntu systems
 
|rowspan=2 |It's a while since the latest release. Still one of the easiest to use open source SVN gui's for Linux and OSX; GPL license.
 
|-
 
|Mac OSX
 
| -
 
|}
 
 
 
For more SVN clients, check [http://en.wikipedia.org/wiki/Comparison_of_Subversion_clients Comparison of Subversion clients] on Wikipedia.
 
 
 
==[SVN gebruiken][Using SVN]==
 
A great resource for learning svn is the book [http://svnbook.red-bean.com/ "Version Control with Subversion"] wich is published online!
 
 
 
==FAQ==
 
[en]
 
====How do I login to the Administrative Interface?====
 
Visit [https://svn.science.ru.nl/ https://svn.science.ru.nl/]; Click 'Authenticate'.
 
[/en]
 
[en]
 
====I forgot my password, how can I reset it?====
 
If you forgot your password you can reset it with the ''Forgot password?'' option.  You have to specify your login name and the exact e-mail address as registered in the SVN database. You'll recieve an email with a new password. If this fails, please [[Contact|contact C&CZ]].
 
[/en]
 

Latest revision as of 08:34, 1 June 2016

svn.science.ru.nl has been turned off! GitLab is the successor of our Subversion service!


Migrating from Subversion to Gitlab

We have automated the migration from Subversion to GitLab. Contact if you wish to have clone access to your migrated repository.

Manual migration from Subversion to Gitlab

Inspired by this short manual, an SVN to git conversion could boil down to something like:

cd /tmp/
git svn clone --no-metadata -A users.txt https://svn.science.ru.nl/repos/myproject
cd myproject
git remote add gitlab :yourscienceloginname/myproject.git
git push --set-upstream gitlab master

Git URLs (https and ssh) are shown on the top of the project page in gitlab. The generic repository URL for the science SVN server is:

https://svn.science.ru.nl/repos/{repository}

And for CS:

https://svn.cs.ru.nl/repos/{repository}


You can also see this for public svn repositories on https://svn.science.ru.nl (viewing private repositories requires authentication).

Migrating to a private SVN repository

It is possible to continue to use subversion for your personal repository. In that case, you C&CZ can help you move your repository off the svn server to your home directory. From that point, you can access the repository via one of the login servers.

Old Subversion wiki page

The old subversion wiki page is archived here