开发者

Subversion - Reference to a project without checking it out?

I'd love to Google this (I've tried) but I'm not sure what it is called, let alone how to do it.

Consider:

project A
project B

I am w开发者_StackOverflow中文版orking on project A, that happens to need project B. How, do I without checking out project B with project A, have a reference to it?

In other words, there is a way (I experienced it on placement) that allows you to use a project within a project and if someone was to update that project you'd get the changes. Basically it means you don't have to worry about falling out of date or managing two copies of something.

No need (but if you can/want) explain, just a link or name will sort myself out.

Cheers.


Yes, this is what svn:externals is for. You still need a copy of project B, but it resides in it's own, separate repository.


If both projects live in the same repository, then simply check out a directory that contains BOTH projects.

For example, lets say the svn repository starts with a directory called "trunk", and this directory contains projectA and projectB directories. If you check out "trunk", then you will be able to work on A, or B and get notified of changes in both projects when you update "trunk".

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜