Publications: 83 | Followers: 0

subversion - Kent State University

Publish on Category: Birds 0

Subversion (svn)Basics
Department of Computer ScienceKentState UniversityProf. Jonathan I. Maletic
Version Control
svnis a tool for version control of filesKeeps a repository of what is under control at a central locationAllows users to make local (aka working) copies of the repository on their machine or file systemSaves each version a user commitsAdministrator sets up main repository.
Getting and Updating
Checkouta repository. A local/working copy of a repository is created on a machine or file system. This links a given folder to the address of the repository.svncheckoutaddressfolderUpdatea local/working copy. The contents of the repository are copied to the local folder. This updates the local copy.svnupdate
Committing Changes
Commitachange. Copy a local change to repository. This commits a change to the repository. This is a new version of the item under version control. It is numbered and the old version is saved. Need to commit:ModifiedfilesAdded or removed filesorfolderssvncommitfile–m “Commit note”
Other Essential Commands
svnadd– add a file. A commit must be done after the add to commit it to the repository.svndelete– delete a file, followed by a commit.svnlog– get all the commit messages. Use this to roll back to an earlier version.
Check Out Working Copy
Machine:svnsvnServer
Machine: waspLogged On
svnco …/svn/jmaletic/ cs23001
svnupdate
Add & Commit
Machine:svnsvnServer
Machine: waspLogged On
emacsMain.cpp
svnaddMain.cpp
svnci –M”Addedmain”
Commit a Change
Machine:svnsvnServer
Machine: waspLogged On
touchMain.cpp
svnci –M”Modifiedmain”
Multiple Working Copies
Machine:svnsvnServer
Machine: wasp
Machine:LabtopLogged On
svnco …/svn/jmaletic/ cs23001
svnupdate
Commit a Change
Machine:svnsvnServer
Machine: wasp
Machine:LabtopLogged On
touchMain.cpp
svnci –m”changeto main”
Update wasp
Machine:svnsvnServer
Machine: Laptop
Machine: waspLogged On
svnupdate
Web Interface
Machine:svnsvnServer
Browser
https://svn.cs.kent.edu/courses/cs23001/svn/jmaletic
Rules to Live By (svn)
Alwaysupdatebefore you start workingAlwayscommitafter changesCommit often – after a major (or minor) change:Add a methodFix a bugChange a method

0

Embed

Share

Upload

Make amazing presentation for free
subversion - Kent State University