Open main menu

CDOT Wiki β

Changes

Hints for Using SVN to collaborate on school projects

65 bytes added, 15:41, 27 September 2011
Starting the Project On SVN
== Starting the Project On SVN ==
There are two possibilities ways to initiate a projecton SVN:# Start To start the project from zero#: This is We do this when you we create an empty project and start to write the code from scratch# Start To start the project by continuing an existing work#: This is We do this when someone else has started the project (i.e. Professorthat is, the professor, other team-members, etc.) and you we want to copy the work into your our own repository and continue that work.
=== Start the Project from zero ===
For this you should To start from zero, create the basic framework initial code of your project in '''trunk''', and '''Addadd''' the code, and '''Commitcommit''' it. This is how you do thisThese are the steps:
# '''checkout''' the project repository in a new directory on your computer;
#:# ''Create a new directory on your local computer, right click on it the directory, and then click on '''SVN Checkout'''#:# In '''URL of the repository''' type your repository path (svn://zenit.senecac.on.ca/....)
#:# click on ok
# If the basic directories (trunk, tags, branches) don't exist , create them and then add them by right clicking on them and selecting '''...SVN/Addadd'''.# In '''trunk''', create your basic project framework, compile it, and run it. (this This could be as simple as few empty files or a Hello world application).# Right click on the '''trunk and ''', select '''....SVN/Addadd''' again , and select all of the needed file files to be added to the repository. #: Add only those files that should be tracked you want to track for modification; . "Those Only the source and project files need to be version-controlled". Binary and Executable executable files are usually not added to the repository; Only add . Add them only if you know what you are have a reason for doingso.# Right click on '''trunk ''' and select '''SVN Commit''' to commit your work to the repository server.
=== Start the project by continuing an existing work ===
To continue an existing work, you should have a '''non-versioned''' copy of the initial code for your project. You should copy this code into the trunk, '''add''' and '''commit'''it. These are the steps: