新聞中心
本節(jié)向大家描述一下SVN創(chuàng)建項目方法,內(nèi)容主要包括創(chuàng)建Repository和.添加項目到SVN中,在這里和大家分享一下,希望通過本文的學習大家能夠?qū)VN創(chuàng)建項目方法有一定的認識。下面是具體介紹。

吉首網(wǎng)站制作公司哪家好,找創(chuàng)新互聯(lián)公司!從網(wǎng)頁設(shè)計、網(wǎng)站建設(shè)、微信開發(fā)、APP開發(fā)、成都響應(yīng)式網(wǎng)站建設(shè)公司等網(wǎng)站項目制作,到程序開發(fā),運營維護。創(chuàng)新互聯(lián)公司自2013年創(chuàng)立以來到現(xiàn)在10年的時間,我們擁有了豐富的建站經(jīng)驗和運維經(jīng)驗,來保證我們的工作的順利進行。專注于網(wǎng)站建設(shè)就選創(chuàng)新互聯(lián)公司。
1.創(chuàng)建Repository
運行命令:
svnadmincreateC:Repository
就會創(chuàng)建一個倉庫。SVN創(chuàng)建項目就放在倉庫下。注意:運行命令前這個目錄不能存在,否則不能創(chuàng)建。
在倉庫下將會生產(chǎn)這些目錄:
- conf/dav/db/formathooks/locks/README.txt
- conf
- Adirectorycontainingrepositoryconfigurationfiles
- dav
- AdirectoryprovidedtoApacheandmod_dav_svnfortheirprivatehousekeepingdata
- db
- ThemainBerkeleyDBenvironment,
- fullofDBtablesthatcomprisethedatastoreforSubversion'sfilesystem(whereallofyourversioneddataresides)
- format
- Afilewhosecontentsareasingleintegervaluethatdictatestheversionnumberoftherepositorylayout
- hooks
- Adirectoryfullofhookscripttemplates(andhookscriptsthemselves,onceyou'veinstalledsome)
- locks
- AdirectoryforSubversion'srepositorylockingdata,usedfortrackingaccessorstotherepository
- README.txt
- AfilewhichmerelyinformsitsreadersthattheyarelookingataSubversionrepository
hook是很有用的,因為通過hook,更新代碼時,可以觸發(fā)事件,來幫助我們autobuild我們的程序。關(guān)于這方面的知識可以參考《pragmaticprojectautomation》,里面講得很詳細
2.添加項目到SVN中
2.1選擇倉庫的Layout
SVN創(chuàng)建項目中通常倉庫有兩種布局:
a.以項目分
/
Project1/
trunk/
tags/
branches/
Project2/
trunk/
tags/
branches/
關(guān)于什么是trunk,tags,branches我就不解釋,查看相關(guān)資料,網(wǎng)上有很多。
b.以分支為主
/
trunk/
project1/
project2/
tags/
project1/
project2/
branches/
project1/
project2/
SVN創(chuàng)建項目中具體使用哪種布局要看實際情況。
這里我使用a。
在workspace,創(chuàng)建目錄
project
/trunk
/tags
/branch
然后進入project目錄
svnimport.file:///C:/BillProject/-m'init'
這樣,SVN創(chuàng)建項目就添加成功。就可以用eclipse來checkout項目了。
當前文章:專家講解如何使用SVN創(chuàng)建項目
當前網(wǎng)址:http://www.dlmjj.cn/article/djidgjc.html


咨詢
建站咨詢
