Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to work around inter-repository single file externals not supported by SVN 1.6?

I'm using SVN externals to include a couple of directories from another repository but I also need to set up externals for two individual files in the root of the project directory.

According to the documentation this is not yet possible:

The URL for a file external must be in the same repository as the URL that the file external will be inserted into; inter-repository file externals are not supported

http://tortoisesvn.net/docs/nightly/TortoiseSVN_en/tsvn-dug-externals.html

How can I work round this as I need two files to be pulled in from an external repository into the root of the project directory.

like image 283
Camsoft Avatar asked Mar 01 '10 14:03

Camsoft


People also ask

How to add svn external?

Simply right drag the file or folder from one working copy to where you want those to be included as externals. A context menu appears when you release the mouse button: SVN Add as externals here if you click on that context menu entry, the svn:externals property is automatically added.

How do I move a file from one directory to another in svn?

Moving files and folders select the files or directories you want to move. right drag them to the new location inside the working copy. release the right mouse button. in the popup menu select Context Menu → SVN Move versioned files here.


1 Answers

you could load them using a "folder external" and move the files either with a pre-build script or maybe a tortoise svn client hook (post-update). not a great solution, but maybe good enough for you?

like image 161
Stefan Egli Avatar answered Oct 06 '22 00:10

Stefan Egli