ITPub博客

首页 > 数字化转型 > ERP > svn创建项目

svn创建项目

原创 ERP 作者:livedba 时间:2011-09-06 11:25:39 0 删除 编辑
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博客 ” ,链接:https://blog.itpub.net/25261409/viewspace-1054793/ ,如需转载,请注明出处,否则将追究法律责任。

下一篇: 技术问题记录
请登录后发表评论 登录
全部评论

注册时间:2011-01-21

  • 博文量
    115
  • 访问量
    483877