2

I have a project managed with Subversion. That project uses svn:externals to link to other repositories. Now I want to replace the externals with the actual data they refer to. How can I do that? I would need to copy between two repositories, but that is not supported by the command line client. I also want to preserve the properties like svn:mime-type. To add or import the data would use my auto-props or none, but I need the original properties. I do not have server access.

The best solution I could come up with is svn merge -r 0:123 http://repo.svn/path/to/external external, but that doesn't copy the very first version of the external resource and all I get is tree conflicts.

This question is similar to How to copy between Subversion repositories preserving properties but not preserving history, but I cannot use svnadmin load.

Community
  • 1
  • 1
holger
  • 415
  • 4
  • 14
  • I do not think it is possible to do that without svnadmin load. – Fausto Carvalho Marques Silva Apr 17 '13 at 14:31
  • The best you could do in your situation is delete the `.svn` folders of each external, then `svn add` and `svn commit`them – Sameer Singh Apr 18 '13 at 13:52
  • @SameerSingh: But what about the properties? They are lost with a simple add+commit. – holger Apr 18 '13 at 14:00
  • Yes that would be the case unfortunately. Unless you have very special properties which you have set yourself, you can use TortoiseSVN to add auto-properties like `svn:mimetype` when performing the add – Sameer Singh Apr 18 '13 at 14:15
  • Sure, I can add new properties. But what I try to achieve is to preserve the original properties. I could query the external repo for the properties and apply them to the added data, but that requires at least a script that walks through the data tree and covers all special cases like `svn:special`. – holger Apr 18 '13 at 14:44

0 Answers0