SVN: Introduction: Difference between revisions
m
Reverted edits by Upazixorys (Talk); changed back to last version by Ric
Upazixorys (talk | contribs) No edit summary |
m (Reverted edits by Upazixorys (Talk); changed back to last version by Ric) |
||
Line 1: | Line 1: | ||
{{SVN Nav}} | {{SVN Nav}} | ||
'''Installing Subversion on 5.0-Nano''' | '''Installing Subversion on 5.0-Nano''' | ||
Line 52: | Line 44: | ||
Once a folder has been converted into a repository you can start using it straight away. Use an SVN client to add your project (folders and files). However it is recommended you first create the following three folders: | Once a folder has been converted into a repository you can start using it straight away. Use an SVN client to add your project (folders and files). However it is recommended you first create the following three folders: | ||
{|cellspacing= | {|cellspacing="6" | ||
|-valign= | |-valign="top" | ||
|& | | ||'''''Trunk'':'''|| Is the main branch of development. This is where your next major release lives. It has all the newest features and code. | ||
|-valign= | |-valign="top" | ||
|& | | ||'''''Branches'':'''|| Are used to try out new features without disturbing the main line of development. Once stable are merged back into the trunk. Or every time you release a major version a branch created. This allows you to do bug fixes and make a new release without having to release the newest unfinished or untested main version. | ||
|-valign= | |-valign="top" | ||
|& | | ||'''''Tags'':'''|| Every time you release a version such as final release, release candidate or betas make a tag for it. Its a point-in-time copy of the code and should never be editted. Must remain fixed and unchaged allowing you to go back to a known point in time. | ||
|} | |} | ||
With the above structure in place add all your new material to the '''trunk'''. | With the above structure in place add all your new material to the '''trunk'''. | ||
Line 74: | Line 66: | ||
{| | {| | ||
|- | |- | ||
| | |<pre> | ||
<Location /repos_name> | |||
DAV svn | DAV svn | ||
SVNPath /absolute/path/to/repository | SVNPath /absolute/path/to/repository | ||
</Location> | |||
</pre> | |||
| | | | ||
* '''repos_name''' Name you type into a browser e.g | * '''repos_name''' Name you type into a browser e.g <nowiki>http://localhost</nowiki>/'''repos_name''' | ||
* '''DAV svn''' Instructs Apache to pass the request onto the DAV layer for processing as a subversion (svn) request. | * '''DAV svn''' Instructs Apache to pass the request onto the DAV layer for processing as a subversion (svn) request. | ||
* '''SVNPath''' Absolute path to the repository folder. (Generally repos_name and folder name are the same.) | * '''SVNPath''' Absolute path to the repository folder. (Generally repos_name and folder name are the same.) | ||
Line 92: | Line 84: | ||
{| | {| | ||
|- | |- | ||
| | |<pre> | ||
<Location /image_controller> | |||
DAV svn | DAV svn | ||
SVNPath C:/design/image_controller | SVNPath C:/design/image_controller | ||
</Location> | |||
</pre> | |||
| | | | ||
* '''image_controller''' Name you type into a browser e.g | * '''image_controller''' Name you type into a browser e.g <nowiki>http://localhost</nowiki>/'''image_controller''' | ||
* '''DAV svn''' Instructs Apache to pass the request onto the DAV layer for processing as a subversion (svn) request. | * '''DAV svn''' Instructs Apache to pass the request onto the DAV layer for processing as a subversion (svn) request. | ||
* '''SVNPath''' Absolute path to the repository folder C:/design/image_controller | * '''SVNPath''' Absolute path to the repository folder C:/design/image_controller | ||
Line 106: | Line 98: | ||
{| | {| | ||
|- | |- | ||
| | |<pre> | ||
<Location /unitray_menu> | |||
DAV svn | DAV svn | ||
SVNPath E:/project2/menus/unitray_menu | SVNPath E:/project2/menus/unitray_menu | ||
</Location> | |||
</pre> | |||
| | | | ||
* '''unitray_menu''' Name you type into a browser e.g | * '''unitray_menu''' Name you type into a browser e.g <nowiki>http://localhost</nowiki>/'''unitray_menu''' | ||
* '''DAV svn''' Instructs Apache to pass the request onto the DAV layer for processing as a subversion (svn) request. | * '''DAV svn''' Instructs Apache to pass the request onto the DAV layer for processing as a subversion (svn) request. | ||
* '''SVNPath''' Absolute path to the repository folder E:/project2/menus/unitray_menu | * '''SVNPath''' Absolute path to the repository folder E:/project2/menus/unitray_menu | ||
Line 129: | Line 121: | ||
{| | {| | ||
|- | |- | ||
| | |<pre> | ||
<Location /svn> | |||
DAV svn | DAV svn | ||
SVNParentPath C:/a_svn/UniServer/svn | SVNParentPath C:/a_svn/UniServer/svn | ||
</Location> | |||
</pre> | |||
| | | | ||
* '''svn''' Top level name. Any folder name after this is assumed to be a repository request and passed to DAV for resolving | * '''svn''' Top level name. Any folder name after this is assumed to be a repository request and passed to DAV for resolving | ||
Line 141: | Line 133: | ||
|} | |} | ||
The repositories may be accessed using the following URL: | The repositories may be accessed using the following URL: | ||
* | * <nowiki>http://localhost</nowiki>/svn/'''image_controller''' | ||
* | * <nowiki>http://localhost</nowiki>/svn/'''unitray_menu''' | ||
'''''Note'':''' Entering | '''''Note'':''' Entering <nowiki>http://localhost</nowiki>/svn will produce the following error message: | ||
<pre> | |||
Forbidden You don't have permission to access /svn/ on this server. | Forbidden You don't have permission to access /svn/ on this server. | ||
</pre> | |||
Effectively the URL is requesting a page listing all repositories in folder '''svn'''. | Effectively the URL is requesting a page listing all repositories in folder '''svn'''. | ||
Line 153: | Line 145: | ||
{| | {| | ||
|- | |- | ||
| | |<pre> | ||
<Location /svn> | |||
DAV svn | DAV svn | ||
SVNListParentPath on | SVNListParentPath on | ||
SVNParentPath C:/a_svn/UniServer/svn | SVNParentPath C:/a_svn/UniServer/svn | ||
</Location> | |||
</pre> | |||
| | | | ||
* '''svn''' Top level name. Any folder name after this is assumed to be a repository request and passed to DAV for resolving | * '''svn''' Top level name. Any folder name after this is assumed to be a repository request and passed to DAV for resolving | ||
* '''DAV svn''' Instructs Apache to pass the request onto the DAV layer for processing as a subversion (svn) request. | * '''DAV svn''' Instructs Apache to pass the request onto the DAV layer for processing as a subversion (svn) request. | ||
* '''SVNListParentPath on''' Enables listing of all repositories for URL | * '''SVNListParentPath on''' Enables listing of all repositories for URL <nowiki>http://localhost</nowiki>/'''svn''' | ||
* '''SVNParentPath''' Absolute path to the parent folder containing all the repositories. C:/a_svn/UniServer/svn | * '''SVNParentPath''' Absolute path to the parent folder containing all the repositories. C:/a_svn/UniServer/svn | ||
|} | |} |