Difference between revisions of "Svn rules - OOP344 20111"

From CDOT Wiki
Jump to: navigation, search
(fixd gramer and sentence structure)
(checkout)
Line 39: Line 39:
 
=== checkout ===
 
=== checkout ===
 
* is the first thing you do to get a copy of the whole, or part of a repository
 
* is the first thing you do to get a copy of the whole, or part of a repository
 +
=== add ===
 +
* is to mark a new file or directory to be added to the repository at next commit
 +
=== update ===
 +
* is to bring changes from repository and apply it to your copy
 +
=== export ===
 +
* makes a non-versioned copy of whole or part of a repo
 +
=== import ===
 +
* copies a non_versioned directory of file to a repository to be checked out later

Revision as of 09:10, 14 January 2011


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

SVN

Standard directories

branches

  • in here each team member will create a home directory using her/his seneca id
  • each of the following home directories will contain several directories, some of which are work space for different tasks.

email id1

  • devbackspace
  • leftArrowbug
  • workspace 3
  • etc....

email id2

email id 3

tags

  • holds several directories and each is a copy of a completed task of trunk
  • tags are never to be changed or edited, they are simply copies of success points during the development of the project

trunk

  1. holds the currect status of the application
  2. is always in a successful compiled state

How to work with trunk

  • in your team page there must be a trunk status section
    • in trunk status section you must have two things:
      • 1 - Status of trunk (committed, committing)
      • 2- the id of the person who has committed or is committing the turnk
      1. before committing any changes to trunk, make sure your version is compiled and working.
      2. make sure the status is NOT committing; if it is wait for it to change to committed
      3. if status is committed, change it to committing with you id
      4. start merging your changes
      5. resolve conflicts if happens
      6. compile again to make sure it is successful
      7. do the final commit
      8. change the status back to committed with your id

important commands

checkout

  • is the first thing you do to get a copy of the whole, or part of a repository

add

  • is to mark a new file or directory to be added to the repository at next commit

update

  • is to bring changes from repository and apply it to your copy

export

  • makes a non-versioned copy of whole or part of a repo

import

  • copies a non_versioned directory of file to a repository to be checked out later