????4. ???????
????1 vi /opt/svndata/repos/conf/pwd.conf
?????????????????
????[users]
????username1 = password1
????username2 = password2
?????????????????????????????
????5. ???????
????vi /opt/svndata/repos/conf/authz.conf
????????飺?????????????“????·???????”????????????????·?????????г?????????????????????r????дrw??????г???????????????????????????????飬??????ο?svn???????????????
????[/opt/svndata/repos]
????user1 = rw
????user2 = r
????6. ???import???????
??????????汾????????????????????
????1 $ svnadmin create /usr/local/svn/newrepos
????2 $ svnimport mytree file:///usr/local/svn/newrepos/some/project
?????????????????????????????????????????????????????????????????svn checkout??????????????????????????????汾????????????????????db??????е??????????????????????????svn checkout??????????????workcopy???????????????????
????1 svn checkout file:///usr/local/svn/newrepos/some/project workcopy
????7. ???????
???????svnserve –d –r /opt/svndata/repos/ ??????? ??deamon??????С?
????????????svnserve????? ????С???????????????. ????????????? ???ü?.
????????飺????????????svn????-d?????????????У?svn?????3690????????3690???????????????“–listen-port=”????“–listen-host=”?????????????-r??????????svn???????????????????????????·???????????????????·????
???????????????????(svnserver???)
????1 svn checkout svn://127.0.0.1/dir
??????????????IP???????????????????dir??汾??·????????????????????????
?????汾???????汾??????????????????汾??????????汾???????????м??ɡ?
?????????????????????????????У???????Windows????????????????????????e汾??????????????汾?????????????????
????svn???????
????????svn??????????????????
????????????????
????Steven???????????????workplace?????????DemoProject?????????workplace???У??????в?????
????0?? ????workplace???????checkout?????????
????cd workplace
????checkout DemoProject
?????????? ??????????linux?????????????svn?????????????????綼??steven????????????????svn?????????????????????????????linux??????????????????????svn???????????????
??????????????????? ??workplace???л????DemoProject????
????1?? ??????????????hello.cpp?? ??????DemoProject/src/demo
????A?? ???μ?????
????svn up
????B?? ??????????
????commit hello.cpp
????svn up
????C?? ??????????????(????src/include??)
????svn up                  #???±????????
????svn add hello.h         #??????
????commit hello.h          #??hello.h????
????svn up                  #???±????????
????D???????????????(????src/demo??)
????# svn del hello.cpp          ??????е?hello.cpp???
????# commit hello.cpp          ??????
????# svn up                   ???±????????
????2?? ????е???????????????????????л?????????е??????(src??)
????A?? ???????????е?????(????DemoProject??)
????# svn up src //??src???????μ???????????и??μ?DemoProject????
????B?? ????????????????е???(??????????include
????# svn up
????# commit include
????# svn up
????C?? ???????????е???(DemoProject/lib)
????????DemoProject????
????# svn mkdir lib             ????lib??
????# commit lib               ??????
????# svn up                   ???±????????
????D?????????????????(demo) ????DemoProject/src/??
????# svn up ???±????????
????# svn del demo ???demo?????
????# commit demo ???????????
????3?? ??????????????
????A?? ??????????(??DemoProject????)
????# list DemoProject
????B?? ??????????????????????????????(????src/demo??)??
????# svn diff hello.cpp
????C?? ??????????????????????????????????
????# svn log –v hello.cpp
????4?? ????????
????A?? ??src/demo???μ?????????????????????????
????# svn st
?????????? hello.cpp????????????????svn st???????????hello.cpp?????M????????????????????????
????B?? ??svn????????
????# svn help update ??update????????.
????C?? ??????(??и??±???????????????????3??)?????
??????1?? ????????????е?汾?????????????????????
????# svn revert hello.cpp
????# svn up
??????2?? ?????????????????????????????????а汾??????
????# ????????????????????????resolved
????# svn resolved
????# svn commit hello.cpp
????D??checkout?????????汾
??????????????checkout??????DemoProject??汾???????checkout??????
????# svn log DemoProject ????汾????????4330?汾
????# checkout DemoProject –r 4330