Difference between revisions of "Subversion server"

From SourceWiki
Jump to navigation Jump to search
(The source server can be used to host subversion reporitories.)
Line 5: Line 5:
 
The source server can be used to host your subversion reporitories.
 
The source server can be used to host your subversion reporitories.
  
== Creating a repository ==
+
= Creating a repository =
 
Contact [mailto:j.p.renaud@bristol.ac.uk JP Renaud] or [mailto:gethin.williams@bristol.ac.uk Gethin Williams] to get a subversion account. For the sake of explanation, lt's call your project '''myproject''' and the login '''mylogin'''.
 
Contact [mailto:j.p.renaud@bristol.ac.uk JP Renaud] or [mailto:gethin.williams@bristol.ac.uk Gethin Williams] to get a subversion account. For the sake of explanation, lt's call your project '''myproject''' and the login '''mylogin'''.
  
 
The repository will be accessible at the URL http://source.ggy.bris.ac.uk/subversion/myproject
 
The repository will be accessible at the URL http://source.ggy.bris.ac.uk/subversion/myproject
  
 +
=Using the command line client=
 
==Importating data in your repository==
 
==Importating data in your repository==
 +
 +
If the data that you want to import into the repository is in the folder ''localfolder'', you need to send the data inside this folder to the subversion repository. We recommend that you import your data into the ''trunk'' section of the repository. Using a ''trunk'' will allow you to ''branch'' and ''tag'' later on in your development. Read the [[:Category:Subversion|Subversion pages]] for detailed information about this. The following command will do
  
 
<pre>
 
<pre>
svn import http://source.ggy.bris.ac.uk/subversion/myproject --user-name mylogin -m "Initial import."
+
svn import http://source.ggy.bris.ac.uk/subversion/myproject/trunk --user-name mylogin -m "Initial import. "
 
</pre>
 
</pre>
 +
 +
This will import the content of ''localfolder'' into the repository and will use "Initial import" as the log message.
  
 
==Day to day work==
 
==Day to day work==
 +
 +
To start working, you first need to ''checkout'' your repository:
 +
 +
<pre>
 +
svn checkout http://source.ggy.bris.ac.uk/subversion/myproject/trunk --user-name mylogin workingcopy
 +
</pre>
  
 
Read the [[:Category:Subversion|Subversion pages]] to understand how to use the repository for your daily work.
 
Read the [[:Category:Subversion|Subversion pages]] to understand how to use the repository for your daily work.
  
==Using websvn==
+
=Using TortoiseSVN on Windows=
 +
 
 +
=Other graphical interfaces=
 +
 
 +
=Using websvn=
  
 
After importing data in your repository, you can browse it vi a web interface called [http://websvn.tigris.org WebSVN]. On the source server, the WebSVN frontend is located at http://source.ggy.bris.ac.uk/websvn. You will be asked for your login information and the repositories to which you have access will be visible.
 
After importing data in your repository, you can browse it vi a web interface called [http://websvn.tigris.org WebSVN]. On the source server, the WebSVN frontend is located at http://source.ggy.bris.ac.uk/websvn. You will be asked for your login information and the repositories to which you have access will be visible.

Revision as of 13:12, 21 December 2005


The source server can be used to host your subversion reporitories.

Creating a repository

Contact JP Renaud or Gethin Williams to get a subversion account. For the sake of explanation, lt's call your project myproject and the login mylogin.

The repository will be accessible at the URL http://source.ggy.bris.ac.uk/subversion/myproject

Using the command line client

Importating data in your repository

If the data that you want to import into the repository is in the folder localfolder, you need to send the data inside this folder to the subversion repository. We recommend that you import your data into the trunk section of the repository. Using a trunk will allow you to branch and tag later on in your development. Read the Subversion pages for detailed information about this. The following command will do

svn import http://source.ggy.bris.ac.uk/subversion/myproject/trunk --user-name mylogin -m "Initial import. "

This will import the content of localfolder into the repository and will use "Initial import" as the log message.

Day to day work

To start working, you first need to checkout your repository:

svn checkout http://source.ggy.bris.ac.uk/subversion/myproject/trunk --user-name mylogin workingcopy

Read the Subversion pages to understand how to use the repository for your daily work.

Using TortoiseSVN on Windows

Other graphical interfaces

Using websvn

After importing data in your repository, you can browse it vi a web interface called WebSVN. On the source server, the WebSVN frontend is located at http://source.ggy.bris.ac.uk/websvn. You will be asked for your login information and the repositories to which you have access will be visible.

Changing login

The login information is cached and if for some reason you want to login as another user (myotherlogin), use the following URL: http://myotherlogin@source.ggy.bris.ac.uk/websvn