How to do internal svn:externals

Subversion 1.5 added relative externals.


I don't think if this is your real problem, but I define the properties directly on the folder. In your case, I create a src\somewhere_else folder and add the property:

schema https://svn.acme.com/svn/project/trunk/src/schema

Just a little thing to remember, if you define absolute external url like you propose to do:

src/somewhere_else/schema https://svn.acme.com/svn/project/trunk/src/schema

they will not automatically change if you create a TAG or BRANCH. Meaning that one part of a TAG (the external url) will always point to the TRUNK of your schema.

It's of course fine if the schema don't change too much but may be a problem further down the road when you have a 2 year old application to patch and the schema has been widely changed.


The syntax you give:

working-copy-relative-path    full-repo-url

Should work just fine. But, if you go this route, you do have to give the full URL as you would use it if you were checking out, even if the link is within the same repository. You are doing that, right?

The alternative, introduced with 1.5 are relative externals:

repo-url-or-relative-path working-copy-relative-path

See Roger Lipscombe's link for more info.

Still, what you are describing should work. If it isn't working then you must not be describing what you are actually doing accurately enough. Some detail is still missing.