Haleh Mahbod Apache Tuscany - Quick Reference for Subversion

You can download Subversion from .

Subversion Reference manual ("the book") is located at .

If you use Eclipse as your development environment, there is a plugin available which enables you to use Subversion from within Eclipse (ie it is a Subversion client for Eclipse). This plugin is called Subclipse and it is located at:

If you use Windows on your systems, there is also a graphical client implemented as an extension to the Windows shell, called TortoiseSVN: http://tortoisesvn.tigris.org/

Common Commands for Subversion

Create a directory called tuscany and check out the project.

To check out the Java project:

Committers:                        
svn co https://svn.apache.org/repos/asf/incubator/tuscany/java
Non-Commiters:
svn co http://svn.apache.org/repos/asf/incubator/tuscany/java
			

To check out the C++ project:

Committers:                        
svn co https://svn.apache.org/repos/asf/incubator/tuscany/cpp
Non-Commiters:
svn co http://svn.apache.org/repos/asf/incubator/tuscany/cpp
			

If it worked, you will see all the files as they checkout followed by a revision number - this is the version of the tree that you have (useful for comparing notes)

To update your copy with other's people's committed changes:

svn update
			

To manipulate files in various ways:

svn add

svn move

svn remove

svn diff
			

To commit changes go to the root and:

svn commit -m"change comment"
			

This will commit the entire tree and display the new revision number. You can also commit sub-trees and individual files but this is not normal.

To undo changes:

svn revert ${file}
svn revert -R ${directory}
			

To see what has changed locally:

svn status

Results:

A means a file has been added locally

D means a file has been deleted locally

M means a file has been modified locally

? means a file exists locally that is not being managed by svn. Typically this means you forgot to add it with svn add .

! means a file that was being managed by svn no longer exists locally. Typically this means you didn't delete it using svn remove.