Difference between revisions of "Development and submission steps using SVN - OOP344 20121"

From CDOT Wiki
Jump to: navigation, search
(Create your workspace)
(branch the trunk for development)
Line 14: Line 14:
 
#: note that this sub-dir is referred as your '''workspace'''
 
#: note that this sub-dir is referred as your '''workspace'''
  
== branch the trunk for development ==
+
== Branch trunk for development ==
* branch the trunk into a dir under your workspace in branches
+
* branch the trunk into a sub-dir under your own workspace under branches
*: 1. Right-click on trunk directory
+
*: 1. Right-click on the trunk directory
 
*: 2. Choose TortoiseSVN and click on branch/tag...
 
*: 2. Choose TortoiseSVN and click on branch/tag...
*: 3. Click on the [...] button on the right under "To URL:"
+
*: 3. Click on the [...] button to the right of "To URL:"
*: 4. Go to the root directory, then branches directory, click on your workspace, then press "OK"
+
*: 4. Click on the root directory, then on branches, then on your workspace, then press "OK"
*: 5. Edit the URL created by adding a slash and a directory name you want (a.k.a create a new directory)
+
*: 5. Edit the URL created by adding a slash and the name that you want to give to your new sub-directory (a.k.a create a new directory)
*: 6. The directory name should be a name of your work (whatever you are going to work on)
+
*: 6. The name of your new sub-directory should refer to your particular task (whatever you are going to work on)
*: 7. Type in the log message and press "OK"
+
*: 7. Type in a log message that describes what you are doing and press "OK"
 
* update your repository to get the branch on your local machine
 
* update your repository to get the branch on your local machine
  

Revision as of 17:05, 19 January 2012



OOP344 | Weekly Schedule | Student List | Teams | Project | Student Resources

Checkout team repository

  1. create a directory on the local machine (you usually do this only once on each workstation for development)
  2. checkout the repository into this directory
    using the GUI (TortoiseSVN) right click on the directory and select SVN Checkout
    you should now have a copy of the whole repo on your workstation.

Create your own workspace

  1. create your own sub-directory under branches and name it using your seneca id
    add this sub-directory to the repository (right click on the sub-dir and select TortoiseSVN/add)
    commit your addition to the repo (right click on the sub-dir and select SVN Commit) this will save it on the server
    note that this sub-dir is referred as your workspace

Branch trunk for development

  • branch the trunk into a sub-dir under your own workspace under branches
    1. Right-click on the trunk directory
    2. Choose TortoiseSVN and click on branch/tag...
    3. Click on the [...] button to the right of "To URL:"
    4. Click on the root directory, then on branches, then on your workspace, then press "OK"
    5. Edit the URL created by adding a slash and the name that you want to give to your new sub-directory (a.k.a create a new directory)
    6. The name of your new sub-directory should refer to your particular task (whatever you are going to work on)
    7. Type in a log message that describes what you are doing and press "OK"
  • update your repository to get the branch on your local machine

start coding and complete the task

  1. code
  2. compile
  3. test
  4. compile
  5. commit (commit changes back to repo on server)

merge the branch back to trunk

  1. make sure branch is commited
  2. right click on trunk and select TortoiseSVN/merge
  3. select your branch
  4. merge by default settings and resolve possible conficts

Test and commit trunk

  1. recompile and test merged trunk
  2. update trunk status on wiki team page to commiting
    if the status is already commiting wait for it to be done
  3. commit trunk
  4. resolve possible problems
  5. commit again
  6. update trunk status on wiki team page to commited

Resources