$svn list svn://parallel02.usc.edu:3690/csci201/Tuesday1
Authentication realm: <svn://parallel02.usc.edu:3690> CSCI 200 201
Password for 'dwilczyn':
#You’ll have to enter your svn password and answer yes to the question about encryption. Then you’ll see:
V3.1/
Factory/
$ svn co svn://parallel02.usc.edu:3690/csci201/Tuesday1/V3.1/trunk myRestaurant
Checked out revision 5.
#This is initially empty
#Connect to wherever your v3 is.
$ cd myRestaurant
#copy (cp) or move (mv) or ftp your v3 here: there should be a doc, src, build.xml, etc.
#myRestaurant is your new home directory for the v3.1 application.
#When you do an ls, you should see doc, src, build.xml.
#Don’t upload any object files, do an ant clean
$ant clean
$ svn add *
#You must supply a comment with every commit (and some other commands). The easiest way is inline with the -m option.
$ svn commit -m "first upload of restaurant v3 to begin on v3.1"
People work on this project until each deliverable. To get latest version of what people are doing:
$ svn update
#Do your work. If you’ve created a new file or directory:
$ svn add fileOrDirectory
#When you are satisfied that everything working:
$ svn commit -m "statement about what your new version does."
People work on this project until each deliverable. Then save it as follows:
$svn cp -m "some comment"svn://parallel02.usc.edu:3690/csci201/Tuesday1/V3.1/trunk svn://parallel02.usc.edu:3690/csci201/Tuesday1/V3.1/tags/v3.1Final
$svn cp -m "some comment" svn://parallel02.usc.edu:3690/csci201/Tuesday1/V3.1/trunk svn://parallel02.usc.edu:3690/csci201/Tuesday1/V3.1/branches/myv1
#Now I'm still in directory myRestaurant and I do:
$ svn switch svn://parallel02.usc.edu:3690/csci201/Tuesday1/V3.1/branches/myv1
$svn info svn://parallel02.usc.edu:3690/csci201/Tuesday1/V3.1/branches/
$svn list svn://parallel02.usc.edu:3690/csci201/Tuesday1/V3.1/branches/
$ svn status -v
In the output you will see files with these labels:
A item The item has been scheduled for addition into the repository.
C item The item is in a state of conflict.
D item The item has been scheduled for deletion from the repository.
M item The contents of the file item have been modified.
svn diff
$ svn diff > patchfile
See the manual for details
svn revert
See the manual for details
svn import Easy way to add all files to a repository for the first time
svn revert Revert any local changes made to a file.
svn status List any modified, out of date, or ignored files.
svn log Display the change log for a file.
svn blame Show who made changes to each line of a file.
svn mv Move a file/directory on next commit.
svn cp Copy a file/directory on next commit.
svn rm Delete a file/directory on next commit.
svn add Add a file to the server on next commit.
svn help Just in case you forgot something!