The document provides an overview and introduction to using Subversion (SVN) for version control. It discusses basic SVN concepts like revisions, atomic commits, branching and tagging. It also covers installing and configuring an SVN server, common SVN commands like checkout, update, commit, add, delete, copy and move. It describes resolving conflicts during merges. The document is intended to teach SVN basics and help users get started with the version control system.
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Subversion 101: A short introduction to Subversion
1. Version Control:: Subversion 101 Nguyen Vu Hung [email_address] 2010/10/05 2010/10/05 Subversion 101 Nguyen Vu Hung
2. Change History 2010/10/05 Subversion 101 Nguyen Vu Hung No Author Date Slides Details 1 Vuhung 2010/10/04 All Newly created 2 Vuhung 2010/10/05 - - 3 Vuhung 2011/01/06 All Remove private info
3.
4.
5.
6.
7.
8. Revision Control system 2010/10/05 Subversion 101 Nguyen Vu Hung As Atomic Changes Not just change, It is change management 0 1 2 3
9.
10. Usages 2010/10/05 Subversion 101 Nguyen Vu Hung Backing up data Documentation Configuration Management Distributed Development CR 12
11. Architecture 2010/10/05 Subversion 101 Nguyen Vu Hung Berkley DB FSFS Subversion Repository Client Interface Repository Interface GUI client apps Commandline client apps Client Library Working Copy Management Library Repository access DAV SVN Local Apache mod _ dav mod_dav_svn svnserve Internet (Any TCP/IP Network) Offline Support Unix/Linux/Windows/Mac OS X WebDav Integration SSL LDAP
18. Installation (server settings) 2010/10/05 Subversion 101 Nguyen Vu Hung [root@ svn-repo]# pwd /svn-repo [root@ svn-repo]# ls -1 001.Project1 005.Project2 006.Project3 cd /svn-repo svnadmin create 001.Project1 chown -R apache.apache 001.Project1 service httpd restart
19.
20.
21.
22.
23.
24.
25. Work flow 2010/10/05 Subversion 101 Nguyen Vu Hung svn checkout svn update get content svn add svn move svn delete Make changes svn status -u See what was changed in the repository in the meantime svn update Update your local copy svn diff svn resolved Merge your changes Resolve conflicts svn commit Submit your changes 105 100 106 Subversion Repository
26. Branching 2010/10/05 Subversion 101 Nguyen Vu Hung branches trunk PC Root iPhone PC branch (vuhung) branches trunk Easy to understand Cheap (a little copy) Can be deleted/reanimated
47. Svn diff 2010/10/05 Subversion 101 Nguyen Vu Hung [vuhung@ 20100927]$ svn diff . Index: chuyen.lrc =================================================================== --- chuyen.lrc (revision 166) +++ chuyen.lrc (working copy) @@ -5,15 +5,15 @@ [00:15.83]chieu ngoai o, gio khe dua toc em [00:26.51]Cong cong con duong uon quanh. -[00:30.71]chieu dao pho, chieu mang chut huong thanh binh [00:46.72]Thuong anh yeu anh em uoc mo. -[01:01.23]Uoc mo nho be trong doi +[01:01.23]Uoc va mo nho be trong doi [01:16.11]UOc mo cho tinh yeu len hat sac xuan +[01:16.11]UOc mo cho tinh yeu len hat sac xuan [01:21.19]Uoc mo la la tren canh [01:27.07]Nguoc mat thay bao giac mo. @@ -44,4 +44,4 @@ [03:53.07]??c m? nh? be trong ??i [03:58.84]Ng??c m?t th?y bao gi?c m?. -[04:10:10] No newline at end of file +[04:10:10]