Open main menu

CDOT Wiki β

Changes

SVN for School Projects

8 bytes added, 18:24, 15 February 2012
Svn basic commands
*: ''In this case, we divide '''tags''' into exactly the same project sub-directories as in '''trunk'''''
=Svn svn basic commands=
A few important facts and terminology to clarify basic actions:
* The purpose of a code repository is to track all of the modifications done to a project by its team members.
*:*In a project tracked by a code repository (version-controlled, or in short, versioned), you can focus on any change during the project's development life; such as, who modified/added/deleted what and when. You can undo work or rollback the work to any development stage.
* SVN is a client/server repository;
** Code resides on a server and members who have access can copy the whole or parts of the code to their local machines, work on the whole or parts and then apply their changes back to the server.
** Because the code resides on a server, one member may be unaware of the changes made by another, unless the other has applied the changes to the server and the member has updated their local copy.
**: That is why timely and frequent communication amongst team members is vital to the project's success. This is easily accomplished through the project wiki page (team page) and IRC
* A code repository manages the merging of modifications of different members' code. When this fails, the repository will be in a conflict state.
*: * Conflicts can be easily edited, saved, and resolved using the tools provided by SVN.* A '''Versionversion-controlled or versioned''' file is a file that is being tracked by a repository.
<hr>
* If the userid and password are not set to be saved in svn, then you need to add
--username stdId --password stpassword
</pre></big>
: to the end if each svn command. (userid and password '''are''' set to be saved by default. Make sure to reboot your lab computer for the userid and password to be erased)
To '''update''' is to download and apply the modifications made by others to the repository (on the server) to the local files on your own computer
* GUI
*: Right click on the directory or file that you want to update and click on "SVN update"
* Command Line
: while in the local directory
<big><pre>svn update</pre></big>
: OR from anywhere<big><pre>svn update LocalDirecotyPathLocalDirectoryPath</pre></big>: OR for a single file<big><pre>svn update LocalDirecotyPathLocalDirectoryPath/somefile.whatever</pre></big>
== branch/tag ==