User Tools

Site Tools


subversion

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
subversion [2021/03/17 20:43] – changed tmp to coding-projects folder peteyboysubversion [2021/03/18 17:36] (current) – [Subversion] added RCS link peteyboy
Line 1: Line 1:
 ====== Subversion ====== ====== Subversion ======
  
-//*THIS TUTORIAL IS UNDER CONSTRUCTION*//+This tutorial is not about using a version control system, or about using Subversion, but about how to get started with Subversion on SDF. Other source control tools available for looking into are [[hosted git repos - gitea on sdf | SDF-hosted git]] (newer, distributed version control), [[CVS]] (older technology than SVN) and [[RCS]] (the granddaddy)
  
  
-This tutorial is not about using a version control system, or about using Subversion, but about how to get started with Subversion on SDF+There are graphical tools such as TortoiseSVN, but we will start with Subversion's command-line tool (this is SDF we're talking about, right?) which is ''svn'', and //is installed on the cluster//
  
- +Subversion is normally intended to be hosted on a serverso working with it locally with an SDF user account is a little awkwardrequiring the use of ''file:<nowiki>//</nowiki>'' URLs. At the end of this tutorialwe will touch on how to set subversion up for remote access.
-There are graphical tools such as TortoiseSVNbut we will start with Subversion's command-line tool (this is SDF we're talking aboutright?) which is ''svn'', and //is installed on the cluster//+
  
 ===== Creating A Repository ===== ===== Creating A Repository =====
Line 41: Line 40:
  
     cd html     cd html
-    svn import  -m "initial import" file://localhost$HOME/.svn_repos/my-cool-project/html+    svn import -m "initial import" file://localhost$HOME/.svn_repos/my-cool-project/html
  
  
 In this command In this command
  
-  * 'import' is our cvs command+  * 'import' is our 'svn' command
   * '-m "initial import"' is a message that will appear in the log.   * '-m "initial import"' is a message that will appear in the log.
   * '<nowiki>file://localhost$HOME/.svn_repos/my-cool-project/html</nowiki>' is the file pointer to our repo, with the last bit being the new directory where we want our 'html' stuff to go   * '<nowiki>file://localhost$HOME/.svn_repos/my-cool-project/html</nowiki>' is the file pointer to our repo, with the last bit being the new directory where we want our 'html' stuff to go
Line 52: Line 51:
 You can modify the message, the module name and the tags to your liking, just keep in mind that in the rest of this tutorial we will use 'html' for the module name. You can modify the message, the module name and the tags to your liking, just keep in mind that in the rest of this tutorial we will use 'html' for the module name.
  
-===== Checking It Out ===== +===== Checking It Out =====
- +
-   cd +
-   mkdir coding-projects +
-   cd coding-projects +
-   svn co file://localhost$HOME/.svn_repos/my-cool-project/html html +
  
-To verify that you've checked out a working copy, run ''svn info''. It should output something like:+   cd ~/coding-projects 
 +   svn co file://localhost$HOME/.svn_repos/my-cool-project/html
  
->Path: . +To verify that you've checked out a working copy of just the //html// directory, first, do an ''ls html'' and see that the files are there. Second, run ''svn info''. It should output something like: 
->Working Copy Root Path: /sdf/arpa/ns/p/peteyboy/svn-projects/svn-import-project +<code> 
-><nowiki>URL: file://localhost/sdf/arpa/ns/p/peteyboy/.svn_repos/svn-test-project/svn-import-project</nowiki> +$ svn info html 
->Relative URL: ^/svn-import-project +Path: html 
->Repository Root: <nowiki>file://localhost/sdf/arpa/ns/p/peteyboy/.svn_repos/svn-test-project</nowiki> +Working Copy Root Path: /sdf/arpa/ns/p/peteyboy/coding-projects/html 
->Repository UUID: 544a3ecf-0234-e84b-9db9-4af62ac22ed4 +URL: file://localhost/sdf/arpa/ns/p/peteyboy/.svn_repos/my-cool-project/html 
->Revision: 3 +Relative URL: ^/html 
->Node Kind: directory +Repository Root: file://localhost/sdf/arpa/ns/p/peteyboy/.svn_repos/my-cool-project 
->Schedule: normal +Repository UUID: 6909fbfb-0895-7146-9482-bf1fd1033119 
->Last Changed Author: peteyboy +Revision: 1 
->Last Changed Rev: 3 +Node Kind: directory 
->Last Changed Date: 2021-03-17 20:01:51 +0000 (Wed, 17 Mar 2021)+Schedule: normal 
 +Last Changed Author: peteyboy 
 +Last Changed Rev: 1 
 +Last Changed Date: 2021-03-17 20:56:14 +0000 (Wed, 17 Mar 2021) 
 +</code>
  
 +===== Accessing It Remotely =====
  
-===== 5 Accessing It Remotely =====+One way to easily set up access to your svn repo for remote use is to set up [[trac_on_sdf|Trac]] on SDF
  
-TBD+Another is to run [[http://svnbook.red-bean.com/en/1.7/svn.serverconfig.svnserve.html#svn.serverconfig.svnserve.invoking | snvserve]], but this is complicated, as on SDF, subversion is installed on the cluster but not on the [[metaarray]], but users can only run processes on their [[meta_port_allocation| Allocated port]] on the metaarray. If a user wants to do this, they should post to [[bboard|bboard]] and request svn to be installed there.
  
subversion.1616013791.txt.gz · Last modified: 2021/03/17 20:43 by peteyboy