svn创建项目

svn创建项目[@more@]

1.创建Repository

运行命令:

svnadmincreateC:Repository

就会创建一个仓库。SVN创建项目就放在仓库下。注意:运行命令前这个目录不能存在,否则不能创建。

在仓库下将会生产这些目录:

 
 
  1. conf/dav/db/formathooks/locks/README.txt
  2. conf
  3. Adirectorycontainingrepositoryconfigurationfiles
  4. dav
  5. AdirectoryprovidedtoApacheandmod_dav_svnfortheirprivatehousekeepingdata
  6. db
  7. ThemainBerkeleyDBenvironment,
  8. fullofDBtablesthatcomprisethedatastoreforSubversion'sfilesystem(whereallofyourversioneddataresides)
  9. format
  10. Afilewhosecontentsareasingleintegervaluethatdictatestheversionnumberoftherepositorylayout
  11. hooks
  12. Adirectoryfullofhookscripttemplates(andhookscriptsthemselves,onceyou'veinstalledsome)
  13. locks
  14. AdirectoryforSubversion'srepositorylockingdata,usedfortrackingaccessorstotherepository
  15. README.txt
  16. AfilewhichmerelyinformsitsreadersthattheyarelookingataSubversionrepository

hook是很有用的,因为通过hook,更新代码时,可以触发事件,来帮助我们autobuild我们的程序。关于这方面的知识可以参考《pragmaticprojectautomation》,里面讲得很详细

2.添加项目到SVN中

2.1选择仓库的Layout

SVN创建项目中通常仓库有两种布局:

a.以项目分
/
Project1/

trunk/

tags/

branches/

Project2/

trunk/

tags/

branches/

关于什么是trunk,tags,branches我就不解释,查看相关资料,网上有很多。

b.以分支为主
/
trunk/

project1/

project2/

tags/

project1/

project2/

branches/

project1/

project2/

SVN创建项目中具体使用哪种布局要看实际情况。

这里我使用a。

在workspace,创建目录

project

/trunk

/tags

/branch

然后进入project目录

svnimport.file:///C:/BillProject/-m'init'

这样,SVN创建项目就添加成功。就可以用eclipse来checkout项目了。

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/25261409/viewspace-1054793/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/25261409/viewspace-1054793/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值