CSCI 2132: Software Development
Subversion (and Git)
Norbert Zeh
Faculty of Computer Science Dalhousie University Winter 2019
Subversion (and Git) Dalhousie University Winter 2019 Version - - PowerPoint PPT Presentation
CSCI 2132: Software Development Norbert Zeh Faculty of Computer Science Subversion (and Git) Dalhousie University Winter 2019 Version Control Systems A version control system allows us to Record the history of changes to the source code
Norbert Zeh
Faculty of Computer Science Dalhousie University Winter 2019
A version control system allows us to
we are writing (and many more)
Two main types of VCS:
A simplified view:
a repository
labelled versions
Different users can contribute and merge changes
Files, directories Working copy 1 Files, directories Working copy 3 Files, directories Working copy 4 Files, directories Working copy 2 SVN repository
$ svn checkout
$ svn co
SVN repository
$ svn checkout
$ svn co
Files, directories Working copy SVN repository
+ newfile.txt Working copy SVN repository
$ svn add newfile.txt
were made in this commit. $ svn commit -m”Added newfile.txt”
newfile.txt Working copy SVN repository
were made in this commit. $ svn commit -m”Added newfile.txt” $ cd ./; rm -r WorkingCopy
SVN repository
newfile.txt Working copy 1 SVN repository Working copy 2
has an up-to-date view of the repository, including changes others may have committed from their working copies.
committing your changes.
running svn update. ⟹ Run svn update periodically.
has an up-to-date view of the repository, including changes others may have committed from their working copies.
committing your changes.
running svn update. ⟹ Run svn update periodically.
newfile.txt Working copy 1 SVN repository newfile.txt Working copy 2
commit.
(This may leave SVN in a corrupt state.)
administrative information about the working copy.
checking out a new copy.
rm ~/.subversion/auth/svn.simple/+.
(SCCS → RCS → CVS → Subversion, Git, Mercurial, Darcs, …).