Changes

Jump to: navigation, search

SVN for School Projects

2,593 bytes added, 12:00, 15 February 2012
update
OR for a single file
<big><pre>svn update LocalDirecotyPath/somefile.whatever</pre></big>
== '''branch'''ing or '''tag'''ging ==
To branch or tag is to '''copy''' one directory into another. The purpose of the copying dictates calling it '''branch''' or '''tag'''.
*To '''branch''' is to '''copy''' into '''branches''' directory for development
*To '''tag''' is to '''copy''' into '''tag''' to release the next stage of your project (also called to release a milestone)
*GUI, Branching
# Right click on '''trunk''' in your local repository files and under the "TortoiseSVN" sub-menu click on "Branch/tag"
# Click on the button at right side of '''To URL''' and browse and find your '''workspace''' under branches directory (i.e. ''svn://zenit.senecac.on.ca/oop344_113repXX/branches/stdId'') and select it.
# Add the branch name (that is usually the name of the task to do) to the end of the selected path: ''svn://zenit.senecac.on.ca/oop344_113repXX/branches/stdId/'''nameOfTask'''''
# In '''Log message''' type ''"Branching to do what ever task that is to be done"''
# Leave the rest of the options to remain as they are and click on ok.
#: This will make a copy of trunk under your '''workspace/nameOfTask''' on the server.
*GUI, Tagging
# Right click on '''trunk''' in your local repository files and under the "TortoiseSVN" sub-menu click on "Branch/tag"
# Click on the button at right side of '''To URL''' and browse and find your the '''tags''' directory (i.e. ''svn://zenit.senecac.on.ca/oop344_113repXX/tags'') and select it.
# Add the tag name (that is usually a release id like R0.6) to the end of the selected path: ''svn://zenit.senecac.on.ca/oop344_113repXX/tags/'''R0.X'''''
# In '''Log message''' type ''"Tagging release whatever"''
# Leave the rest of the options to remain as they are and click on ok.
#: This will make a copy of trunk under your '''tags/R0.X''' on the server.
'''''Note that this will happen on the server; therefore to actually have this applied your local copy, you should update your repository (for this see [[#Update|Update]])
* Command Line, Branching
<big><pre>svn copy svn://zenit.senecac.on.ca/oop344_113repXX/trunk
svn://zenit.senecac.on.ca/oop344_113repXX/branches/stdId/nameOfTask
-m "Branching to work on whatever task"</pre></big>
#* Note that the type of branching we use in here is called [http://svnbook.red-bean.com/en/1.5/svn-book.html#svn.branchmerge.commonpatterns.feature Feature Branch]
* Command Line, Tagging
<big><pre>svn copy svn://zenit.senecac.on.ca/oop344_113repXX/trunk
svn://zenit.senecac.on.ca/oop344_113repXX/tags/R0.6
-m "R0.6 is released"</pre></big>

Navigation menu