Subversion tutorial Dusan Vudragovic [email protected] Scientific Computing Laboratory
Subversion Tutorial
description
Transcript of Subversion Tutorial
![Page 1: Subversion Tutorial](https://reader035.fdocuments.in/reader035/viewer/2022081505/568167d3550346895ddd26fc/html5/thumbnails/1.jpg)
Subversion TutorialSubversion Tutorial
Version Control MenggunakanTortoiseSVN
![Page 2: Subversion Tutorial](https://reader035.fdocuments.in/reader035/viewer/2022081505/568167d3550346895ddd26fc/html5/thumbnails/2.jpg)
The RepositoryThe Repository
Subversion is a centralized system for sharing information.A repository is a central store of data in the form of a file system tree — a typical hierarchy of files and directories.
2
![Page 3: Subversion Tutorial](https://reader035.fdocuments.in/reader035/viewer/2022081505/568167d3550346895ddd26fc/html5/thumbnails/3.jpg)
Problem of File-Sharing Problem of File-Sharing
3
![Page 4: Subversion Tutorial](https://reader035.fdocuments.in/reader035/viewer/2022081505/568167d3550346895ddd26fc/html5/thumbnails/4.jpg)
Lock-Modify-Unlock Solution Lock-Modify-Unlock Solution
4
![Page 5: Subversion Tutorial](https://reader035.fdocuments.in/reader035/viewer/2022081505/568167d3550346895ddd26fc/html5/thumbnails/5.jpg)
Copy-Modify-Merge Solution Copy-Modify-Merge Solution
5
![Page 6: Subversion Tutorial](https://reader035.fdocuments.in/reader035/viewer/2022081505/568167d3550346895ddd26fc/html5/thumbnails/6.jpg)
SubversionSubversion
http://subversion.tigris.org/http://svnbook.red-bean.com/
Subversion is the free/open-source version control system
Manages files and directories over time.
Remember every change even made to files and directories.
Allows to recover older version of the code or examine the history of how your data changed.
Collaborative editing and sharing of data (source code).
6
![Page 7: Subversion Tutorial](https://reader035.fdocuments.in/reader035/viewer/2022081505/568167d3550346895ddd26fc/html5/thumbnails/7.jpg)
SubversionSubversion
Subversion Repository
Subversionlibrary
Internet/Intranet(any TCP/IP Network)
Client interface
Command line
TortoiseSVN
Subversionserver
http://joolz.csie.ncku.edu.tw/svn/team_name
projectrepository
your project working copyProj
SPMSPMProj7
![Page 8: Subversion Tutorial](https://reader035.fdocuments.in/reader035/viewer/2022081505/568167d3550346895ddd26fc/html5/thumbnails/8.jpg)
RepositoryRepositoryAccess Mode
The SVN server of Lab. is constructed in Apache server
8
![Page 9: Subversion Tutorial](https://reader035.fdocuments.in/reader035/viewer/2022081505/568167d3550346895ddd26fc/html5/thumbnails/9.jpg)
SVN CLIENSVN CLIENTT
9
![Page 10: Subversion Tutorial](https://reader035.fdocuments.in/reader035/viewer/2022081505/568167d3550346895ddd26fc/html5/thumbnails/10.jpg)
SVN Client : TortoiseSVNSVN Client : TortoiseSVNhttp://tortoisesvn.sourceforge.net/
TortoiseSVN is a free open-source client for the Subversion version control system.
Extension for the Windows Explorer.
Icons overlay shows all versioned / modified files.
All Subversion commands available from the explorer context menu. available via a simple right click.
TortoiseSVN requires the administrative rights on your computer to be installed.
10
![Page 11: Subversion Tutorial](https://reader035.fdocuments.in/reader035/viewer/2022081505/568167d3550346895ddd26fc/html5/thumbnails/11.jpg)
Explorer showing icon overlaysExplorer showing icon overlays
11
![Page 12: Subversion Tutorial](https://reader035.fdocuments.in/reader035/viewer/2022081505/568167d3550346895ddd26fc/html5/thumbnails/12.jpg)
Create a new SVNCreate a new SVN folder using repo-browser(1/2)folder using repo-browser(1/2)
1) Choose a folder.2) Right click on the folder. (see as fig. below) Then enter the
svn URL and authentication information.
12
![Page 13: Subversion Tutorial](https://reader035.fdocuments.in/reader035/viewer/2022081505/568167d3550346895ddd26fc/html5/thumbnails/13.jpg)
Create a new SVNCreate a new SVN folder using repo-browser (2/2)folder using repo-browser (2/2)
3) Right click on a folder in repo-browser window.4) Enter folder’s name and log message if necessary.
13
![Page 14: Subversion Tutorial](https://reader035.fdocuments.in/reader035/viewer/2022081505/568167d3550346895ddd26fc/html5/thumbnails/14.jpg)
Create a local checkout folder.(1/2)Create a local checkout folder.(1/2)
1) Create a new folder.2) Right click on the folder. Choose “SVN Checkout”3) URL of the repository:
http://joolz.csie.ncku.edu.tw/svn/Student_Package
14
![Page 15: Subversion Tutorial](https://reader035.fdocuments.in/reader035/viewer/2022081505/568167d3550346895ddd26fc/html5/thumbnails/15.jpg)
Create a local checkout folder.(2/2)Create a local checkout folder.(2/2)
15
![Page 16: Subversion Tutorial](https://reader035.fdocuments.in/reader035/viewer/2022081505/568167d3550346895ddd26fc/html5/thumbnails/16.jpg)
TortoiseSVN: TortoiseSVN: Commit(1/2)Commit(1/2)
At local checkout folder…
16
Auto-completion
Files Checkbox
![Page 17: Subversion Tutorial](https://reader035.fdocuments.in/reader035/viewer/2022081505/568167d3550346895ddd26fc/html5/thumbnails/17.jpg)
TortoiseSVN: TortoiseSVN: Commit(2/2)Commit(2/2)
17
![Page 18: Subversion Tutorial](https://reader035.fdocuments.in/reader035/viewer/2022081505/568167d3550346895ddd26fc/html5/thumbnails/18.jpg)
TortoiseSVN: UpdateTortoiseSVN: Update
Case 1: your SVN files needed to be updated.Case 2: your SVN files are up-to-date.
18
![Page 19: Subversion Tutorial](https://reader035.fdocuments.in/reader035/viewer/2022081505/568167d3550346895ddd26fc/html5/thumbnails/19.jpg)
TortoiseSVN:TortoiseSVN: Conflicted(1/3)Conflicted(1/3)
Repository: Revision 11 Local: Modify Revision 9
19
![Page 20: Subversion Tutorial](https://reader035.fdocuments.in/reader035/viewer/2022081505/568167d3550346895ddd26fc/html5/thumbnails/20.jpg)
TortoiseSVN:TortoiseSVN: Conflicted(2/3)Conflicted(2/3)
At this moment, whatever you do…
20
Update.
Commit.
![Page 21: Subversion Tutorial](https://reader035.fdocuments.in/reader035/viewer/2022081505/568167d3550346895ddd26fc/html5/thumbnails/21.jpg)
TortoiseSVN:TortoiseSVN: Conflicted(3/3)Conflicted(3/3)
21
![Page 22: Subversion Tutorial](https://reader035.fdocuments.in/reader035/viewer/2022081505/568167d3550346895ddd26fc/html5/thumbnails/22.jpg)
Netbeans SVNNetbeans SVN
URL of server that hosts svn
Your username andPassword on that server
![Page 23: Subversion Tutorial](https://reader035.fdocuments.in/reader035/viewer/2022081505/568167d3550346895ddd26fc/html5/thumbnails/23.jpg)
Netbeans SVNNetbeans SVN
Directory on serverSide to check out(blank for whole Repository)
Directory to placeThe files on yourhost