Difference between revisions of "Subversion"

From Cncz
Jump to: navigation, search
(Graphical SVN clients)
(actuele status toegevoegd)
 
(52 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]==
 
  
[nl]
+
== Migrating from Subversion to Gitlab ==
(nog niet beschikbaar)
+
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.
[/nl]
 
[en]
 
[http://subversion.tigris.org/ Subversion]
 
(SVN) is an open source version control system.
 
It was designed to be used by software developers to be able to work on a project
 
concurrently by providing a central repository containing the source code which
 
is accessible over the network.  SVN keeps track of all updates which are
 
made (committed) to the files in the repository.  It also prevents that an update
 
by one of the team members overwrites the work of another member.
 
  
Although SVN focusses on the software development community it is very well
+
== Manual migration from Subversion to Gitlab ==
possible to use it as a general purpose centralized system for sharing and
+
Inspired by [https://gist.github.com/leftclickben/322b7a3042cbe97ed2af this short manual], an SVN to git conversion could boil down to something like:
maintaining information contained in all kinds of data files.  And because
 
SVN offers native support for repository access via
 
[http://en.wikipedia.org/wiki/HTTP HTTP]
 
(the communication protocol used for the World Wide Web), the repository can
 
be browsed by any well behaved web browser.  As such SVN is an easy to use
 
file sharing tool.
 
  
Dedicated SVN [http://en.wikipedia.org/wiki/Comparison_of_Subversion_clients] are
+
<syntaxhighlight lang="bash">
available for many platforms including Windows, Mac, and Linux.
+
cd /tmp/
With these clients all SVN features become available.
+
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>
  
We have set up a [https://svn.science.ru.nl/ subversion server for FNWI]
+
Git URLs (https and ssh) are shown on the top of the project page in gitlab.
including an administrative interface to manage repositories and repository
+
The generic repository URL for the [[Subversion|science SVN server]] is:
users. To be
 
able to use the subversion server contact C&CZ to create a repository and
 
appoint an owner.  The owner of a repository can create additional users
 
and grant access rights to his/her repository(ies).  At the moment it is not
 
possible to use your [[Login|science account]] for authentication but we plan to add
 
this possibility in the future.  Therefore 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.
 
[/en]
 
  
==[Subversion gebruiken][Getting Started]==
+
<code>https://svn.science.ru.nl/repos/{repository}</code>
  
[nl]
+
And for CS:
(nog niet beschikbaar)
 
[/nl]
 
[en]
 
To be able to use our SVN server you need the following:
 
  
* The URL of the repository;
+
<code>https://svn.cs.ru.nl/repos/{repository}</code>
* an SVN username and password;
 
* an SVN client installed on your computer.
 
  
Contact [mailto:postmaster@science.ru.nl postmaster@science.ru.nl] if you would like have a new SVN repository or user account.
 
[/en]
 
  
===[De repository][The Repository]===
+
You can also see this for public svn repositories on https://svn.science.ru.nl (viewing private repositories requires authentication).
  
[nl]
+
== Migrating to a private SVN repository ==
[/nl]
+
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]].
[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]===
+
== Old Subversion wiki page ==
[en]
+
[nl]De oude subversion wiki pagina is [[OldSubversionPage|hier]] gearchiveerd.[/nl]
A subversion user can be owner of one or more repositories. Repository owners can controll user access to the repository and create new svn users if necessary. Account details such as your full name, email address and password can be changed through the web interface:
+
[en]The old subversion wiki page is archived [[OldSubversionPage|here]][/en]
https://svn.science.ru.nl
 
[/en]
 
 
 
[nl]
 
[/nl]
 
[en]
 
====Repository Owners====
 
From the
 
Repository owners will create account names starting with an underscore for external users to prevent username conflicts in the future:
 
{| 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.
 
The repository owner can change your access rights.
 
[/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].
 
 
 
 
 
====Graphical SVN clients====
 
{| border="1"
 
|+Suggested Graphical SVN clients
 
|-
 
!Platform
 
!Application
 
!at FNWI
 
!Description
 
|-
 
|Windows
 
|[http://tortoisesvn.net/ TortoiseSVN]
 
|Optional for Managed PC's
 
|It is implemented as a Windows shell extension, which makes it integrate seamlessly into the Windows explorer; 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
 
| -
 
|}
 
 
 
==[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!
 
Some basic usage is explained in the [http://svnbook.red-bean.com/nightly/en/svn.tour.html introduction section].
 
 
 
==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