© Polarion Software ® Subtrain – SVN User training – IntroductionWhat is Subversion? 1...
-
Upload
lorraine-howard -
Category
Documents
-
view
215 -
download
2
Transcript of © Polarion Software ® Subtrain – SVN User training – IntroductionWhat is Subversion? 1...
© Polarion Software® Subtrain – SVN User training – www.polarion.com
Introduction What is Subversion?
1
© Polarion Software® Subtrain – SVN User training – www.polarion.com
Architecture Overview
2
Berkley DB
FSFS
SubversionRepository
Client Interface Repository Interface
GUI client apps
Command lineclient apps
ClientLibrary
Working Copy Management
Library
Repositoryaccess
DAV
SVN
Local
Apache
mod_dav
mod_dav_svn
svnserve
Internet(Any TCP/IP Network)
TortoiseSVN
Subversive
WebClient for SVN
© Polarion Software® Subtrain – SVN User training – www.polarion.com
• file://
Direct repository access to local or network drive.
• http:// Access via WebDAV protocol to Subversion-aware Apache server.
• https:// Same as http://, but with SSL encryption.
• svn:// Unauthenticated TCP/IP access via custom protocol to an svnserve server.
• svn+ssh:// Authenticated, encrypted TCP/IP access via custom protocol to an svn server.
Architecture Access URLs
3
© Polarion Software® Subtrain – SVN User training – www.polarion.com
• file://hostname/path/to/repos
On local machines the hostname part must either be absent or localhost.
• This results in a path like this one:
file:///path/to/repos
• On Windows you have to specify the drive where to find the repository:
file:///X:/path/to/repos
Architecture Access URLs
4
© Polarion Software® Subtrain – SVN User training – www.polarion.com
Architecture The working copy
5
repositoryworking copy
“Checking out” creates a working copy of a specific revision of the repository
22
10
3
.svn
.svn
SVN's config data. Do not edit these folders!
© Polarion Software® Subtrain – SVN User training – www.polarion.com
Architecture Repository Layout
6
trunk/tags/branches on root; each module will be tagged separately
•checkout of all modules is possible•commits can span multiple modules•tags can not span multiple modules in single commit (workaround by 3rd party tools)
© Polarion Software® Subtrain – SVN User training – www.polarion.com
The Working Cycle
7
svn checkoutsvn update
get content
svn addsvn movesvn delete
Make changes
svn commit
Submit your changes
10
0
10
1
SubversionRepository
© Polarion Software® Subtrain – SVN User training – www.polarion.com
The Working Cycle Check Out
8
• A check out will transfer the project’s contentfrom the repository server to the client machine.
Repository ServerThe client machine
Check out a working copy
2
10
2
© Polarion Software® Subtrain – SVN User training – www.polarion.com
The Working Cycle Commit
9
A commit transfers the project’s modified filesfrom the client machine to the repository server.
Repository ServerThe client machine
commit changes to repository
21
0
2
3