https://wiki.uniformserver.com/index.php?title=SVN:_RapidSVN_Basics&feed=atom&action=historySVN: RapidSVN Basics - Revision history2024-03-29T09:26:24ZRevision history for this page on the wikiMediaWiki 1.41.0https://wiki.uniformserver.com/index.php?title=SVN:_RapidSVN_Basics&diff=3811&oldid=prevRic: New page: {{SVN Nav}} '''RapidSVN Basics''' We currently have a complete SVN installation consisting of '''svn-win32''' running on '''UniServer 5.0-Nano''' and the '''RapidSVN portable''' client. ...2009-08-15T09:18:40Z<p>New page: {{SVN Nav}} '''RapidSVN Basics''' We currently have a complete SVN installation consisting of '''svn-win32''' running on '''UniServer 5.0-Nano''' and the '''RapidSVN portable''' client. ...</p>
<p><b>New page</b></p><div>{{SVN Nav}}<br />
'''RapidSVN Basics'''<br />
<br />
We currently have a complete SVN installation consisting of '''svn-win32''' running on '''UniServer 5.0-Nano''' and the '''RapidSVN portable''' client. <br />
<br />
This page provides a quick introduction to RapidSVN. <br />
<br />
== Browse existing repository ==<br />
Bookmarks are shortcuts to existing repositories or working copies of a repository (or part).<br />
<br />
Repositories can be located either on a remote or local server in this case a bookmark displays a URL to the appropriate repository.<br />
<br />
For working copies a bookmark displays the absolute path to a corresponding folder.<br />
<br />
{|<br />
|-valign="top"<br />
|<br />
'''''Bookmarks'':'''<br />
<br />
A bookmark is nothing more than a '''URL''' (remote/local server) or '''folder path''' (local) to a repository or working copy respectively.<br />
<br />
We currently do not have a local working copy however we do have a local repository installed on our portable server. <br />
<br />
If you remember the URL is '''<nowiki>http://localhost/svn/myproject/</nowiki>'''<br />
<br />
'''''Create book mark'':'''<br />
* Start UniServer C:\a_svn\UniServer\'''Start.exe'''<br />
* Start PortableRapidSVN C:\a_svn\UniServer\svn_portable\'''PortableRapidSVN.exe'''<br />
* '''1)''' Click '''Bookmarks'''<br />
* '''2)''' From the dropdown menu select '''Add Existing Repository'''<br />
* '''3)''' Enter a repository URL '''<nowiki>http://localhost/svn/myproject</nowiki>''' <br />
* '''4)''' Click '''OK'''<br />
* '''5)''' Click a Bookmarks entry, displays folder tree. In the right window individual files are displayed <br />
|<br />
[[File:Nano_svn_3.gif]]<br />
|}<br />
<br />
'''''[[#top | Top]]'''''<br />
<br />
== Checkout - Get working copy ==<br />
Checkout allows you to download either all or part of a repository to any folder. This folder and all folders downloaded into it become working folders.<br />
<br />
A working folder contains a special tracking folder named '''.svn do not delete these folders'''. They are used by SVN to track changes and updates.<br />
{|<br />
|-valign="top"<br />
|<br />
We already created an empty folder. This will be how working folder. <br />
<br />
C:\a_svn\UniServer\'''svn_working_copy'''<br />
<br />
In this example I do not want to download the entire repository only folder '''unicon''' and all its content.<br />
<br />
'''''Create book mark & working copy'':'''<br />
* Start UniServer C:\a_svn\UniServer\'''Start.exe'''<br />
* Start PortableRapidSVN C:\a_svn\UniServer\svn_portable\'''PortableRapidSVN.exe'''<br />
* In bookmarks expand '''<nowiki>http://localhost/svn/myproject</nowiki>'''<br />
** Expand folder '''trunk'''<br />
** '''1)''' Highlight folder '''unicon''' (left mouse click)<br />'''''Note'':''' It is possible to skip this step. You will need to type the full URL to the folder at step 4) <br />
* '''2)''' Click '''Repository'''<br />
* '''3)''' From the drop down menu select '''Checkout''' - opens checkout form.<br />
* '''4)''' Enter full URL to folder unicon '''<nowiki>http://localhost/svn/myproject/unicon</nowiki>'''<br />
** '''''Note'':''' Already filled in if you performed step 1) <br />
* '''5)''' Either type full path to working folder.<br />&nbsp;&nbsp;&nbsp;&nbsp;Or<br />&nbsp;&nbsp;&nbsp;Click button, navigate to working folder, highlight and click open.<br />
* '''6)''' Confirm box '''Add to bookmarks''' is ticked - Default <br />
* '''7)''' Click OK <br />
<br />
With a working copy downloaded.<br />
* '''8)''' Click Bookmarks entry (C:\a_svn\UniServer\svn_working_copy), displays folder tree of current working folder.<br />
* In the right window individual files are displayed including their revision status.<br />
* Right click on a file name, a context menu opens showing what actions you can perform on that file.<br />See below for example.<br />
<br />
|<br />
[[File:Nano_svn_4.gif]]<br />
|}<br />
'''''[[#top | Top]]'''''<br />
<br />
== Commit changes ==<br />
This final example shows how to edit a file and commit to the repository.<br />
{|<br />
|-valign="top"<br />
|<br />
'''''Edit'':'''<br />
<br />
I want to edit file Run.bat contained in the docs folder.<br />
* '''1)''' In bookmarks expand working copy '''<nowiki>C:\a_svn\UniServer\svn_working_copy</nowiki>'''<br />
* '''2)''' Click '''Docs'''<br />
* '''3)''' Right Click '''Run.bat'''<br />
* '''4)''' From the drop down menu select '''Edit''' - opens notepad++.<br />
* Make changes as required. Save file - Note icon changes color - indicates a modification<br />
<br />
'''''Commit'':'''<br />
* '''3)''' Right Click '''Run.bat'''<br />
* '''5)''' From the drop down menu select '''Commit''' - Opens a popup<br />
* In the popup under '''''Enter log message''''' enter reason for change<br />
* Click OK<br />
* Note: Icon color reverts back to white<br />
* Versions numbers are incremented.<br />
<br />
'''''Log'':'''<br />
<br />
Make a few more changes and commits. Now take a look at the log<br />
* '''3)''' Right Click '''Run.bat'''<br />
* From the drop down menu select '''Log''' - Opens log viewer<br />
* Select one of the versions - Note buttons to right are enabled.<br />These are the actions that can be performed. <br />
<br />
|<br />
[[File:Nano_svn_5.gif]]<br />
|}<br />
<br />
'''''[[#top | Top]]'''''<br />
<br />
== Summary ==<br />
The above provides a quick start guide to RapidSVN running with Uniform server more detailed information can be found on their [http://www.rapidsvn.org/index.php/Main_Page '''Wiki'''].<br />
<br />
Putting servers on-line the current configuration allows anyone to commit to your repository. The next page looks at restricting access.<br />
<br />
'''''[[#top | Top]]'''''<br />
<br />
----<br />
<br />
[[Category: Uniform Server 5.0-Nano]]<br />
[[Category: Installation]]</div>Ric