Joe Varghese
Joe Varghese

Reputation: 59

SVN External Files / Folders

Could someone share some info or reference links which sheds some in-depth information on how SVN handles 'external' folders / files. I did get some links from SO and some other sites, but none of them explain it in detail. I am developing a generic API that need to support most of the available CM tools (SVN, PTC Integrity, TFS etc).

Regards, Joe.

Upvotes: 1

Views: 1317

Answers (3)

Dialecticus
Dialecticus

Reputation: 16761

Must read the documentation. svn:externals is just a property of the folder, and other property for instance is svn:ignore. These two have special meaning for SVN, but there are other as well (with prefix different from svn:)

Downside to a SVN external is that if it belongs to a different repository then it is not possible to commit changes in both root working copy and external's WC in a single action. If external actually belongs to the same repository as the root WC then TortoiseSVN does some magic to actually make it possible to commit them in single action.

svn:externals property can pin the revision of the working copy, but this feature is usually only used for tagging folders.

Upvotes: 1

Bert Huijben
Bert Huijben

Reputation: 19612

As Dialecticus already commented, there is no such thing as a 'shared folder' or a 'shared file' in Subversion.

You can bring something else in your working copy using svn:externals but that doesn't really make it shared.

If you are wrapping your own api around it, you could just as well use multiple working copies in a single tree... As that is really all what an external adds you: making it easy to checkout and update from multiple locations.

Upvotes: 1

bahrep
bahrep

Reputation: 30662

If you ask about how svn:externals versioned property operates, then the best resource to learn about this feature is SVNBook, see SVNBook | Externals Definitions. The book covers this topic very well, in fact.

For SharpSVN's documentation see http://docs.sharpsvn.net/current/.

Upvotes: 0

Related Questions