简体   繁体   中英

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 working 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".

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM