Difference between revisions of "Subversion"

From Cncz
Jump to: navigation, search
m ([Introductie][Introduction])
(actuele status toegevoegd)
 
(66 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 account name and password with access to the repository.
 
* An SVN client installed on your PC or laptop.
 
* Internet access.
 
  
To explain the basic concepts we will use [http://tortoisesvn.tigris.org TortoiseSVN] as an example.
 
[/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 HTTP protocol is used. In a way the repository act as a web site.
 
The web address (or URL) of our repositories is typically of the form https://svn.science.ru.nl/repos/ followed
 
by the name of the repository. Note that HTTPS (authenticated and encrypted HTTP using SSL) is used to prevent
 
eavesdropping and to ensure that you are connected to the correct server. Automatic redirection to the HTTPS
 
site is done.
 
[/en]
 
  
===[Authenticatie en autorisatie][Authentication and Authorization]===
+
== Old Subversion wiki page ==
 
+
[nl]De oude subversion wiki pagina is [[OldSubversionPage|hier]] gearchiveerd.[/nl]
[nl]
+
[en]The old subversion wiki page is archived [[OldSubversionPage|here]][/en]
[/nl]
 
[en]
 
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.  Repository owners will create
 
account names starting with an underscore for external users to prevent username conflicts in the future.
 
 
 
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]
 
 
 
===[Installatie van de client][Installing the client]===
 
 
 
[nl]
 
[/nl]
 
[en]
 
First download and install an SVN client for your platform.  On managed PC's you can ask C&CZ to install
 
the client for you.  After installation you must reboot your PC to finish the installation.
 
 
 
Tortoise integrates with the Windows Explorer.  It will give you a number of additional context dependent
 
file management menu options, most of which are available by right clicking on a file or folder.
 
[/en]
 
 
 
==[SVN gebruiken][Using SVN]==
 
 
 
==[Repository-beheer][Repository Management]==
 
 
 
[nl]
 
[/nl]
 
[en]
 
Regular users can manage their accounts through the
 
[https://svn.science.ru.nl/ SVN Administrative Interface].  Repository owners can add new users and
 
manage the access rights for their repository(ies).  Before authentication the interface lists the
 
repositories available on the server.  Click on the repository name for more information.  Click
 
Authenticate to log in.
 
 
 
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.  If you
 
can't remember this address you should contact the owner of the repository to ask him/her to
 
reset your password.  If this fails too please contact C&CZ.
 
 
 
If you supply a valid login name and e-mail address a new password will be send to you.  Please
 
follow the instructions to change your password as soon as possible thereafter.
 
 
 
After logging in you can also see an overview of the users on the SVN server and you can manage
 
your account to change your mail address, your full name and your password.
 
[/en]
 

Latest revision as of 09: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