CVS Checkout to a directory

被刻印的时光 ゝ 提交于 2019-12-18 03:11:36

问题


How do i check out a specific directory from CVS and omit the tree leading up to that directory?

EX.

Id like to checkout to this directory C:/WebHost/MyWebApp/www

My CVS Project directory structure is MyWebApp/Trunk/www

How do i omit the Trunk and MyWebApp directories?


回答1:


Use cvs -d/cvsroot checkout -d directory project/path/directory. The first -d can be omitted if you set the root with the environment. This is called "shortening the path" and can be avoided with the -N option to checkout.




回答2:


CVS is 'tied' to the repository by files in the .CVS folder. Each folder is 'tied' individually.

This means you can just check out the full thing (or if you already have the full thing), then cut/paste the www directory out to somewhere else, and it will remain linked to the correct CVS location.




回答3:


[Oops, deleted some wrong crap.] yeah, co -d www is what you want.

You can also set up modules in the repository, which will let you check out just www as if it were a top-level directory, but you have to do it for every such directory.



来源:https://stackoverflow.com/questions/89181/cvs-checkout-to-a-directory

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!