On Monday 22 August 2011, Markus Schaber wrote:
> We need to add a new directory including files and properties to a
> subversion repository "in-place".

Just to be sure: There are auto-props, which could help in combination with an 
import. There is also svn_load_dirs, in case you need this for maintaining 
vendor branches.

> With SVN 1.6, the following did work: (I know that this is only an
> artifact and was no documented / intended behavior.)
> - Checkout the parent directory to a temporary place.
> - create and svn add the data directory under the parent working copy.
> - svn add and svn propset all the children we need in the working copy.
> - svn commit the parent directory (to add everything in a single
> commit.)
> - move the data directory to the intended working copy place.
> - delete the temporary parent directory.

Yes, there was some recent discussion whether to allow forking a child working 
copy from a parent working copy. If I remember correctly, this is out of 
question for 1.7 and rather something for 1.8 or 1.9.


> Is it theoretically possible with the new working copy architecture to
> allow the working copy root itself to be "scheduled for addition"?
> 
> This could be the base for a nice feature for SVN 1.8, allowing both
> "in-place import" and "import with properties", maybe some command like
> "svn checkout --for-addition
> svn://destination/url/to/some/non/existing/directory/with/existing/parent".

+1

I never use import, because I always get the exact repository location wrong, 
either one too few or one too many directory levels. Having something import-
like that creates a working copy would be a very interesting feature. It 
allows you to verify the target URL, set properties, exclude artifacts from 
builds or other version control systems, test stuff etc and do all that before 
committing.

I'm not sure it is feasible with the current or new WC design though, because 
additions are typically operations on the parent directory. I'm confident the 
SVN team will figure out a solution though.

Greetings!

Uli
**************************************************************************************
Domino Laser GmbH, Fangdieckstraße 75a, 22547 Hamburg, Deutschland
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932
**************************************************************************************
Visit our website at http://www.dominolaser.com
**************************************************************************************
Diese E-Mail einschließlich sämtlicher Anhänge ist nur für den Adressaten 
bestimmt und kann vertrauliche Informationen enthalten. Bitte benachrichtigen 
Sie den Absender umgehend, falls Sie nicht der beabsichtigte Empfänger sein 
sollten. Die E-Mail ist in diesem Fall zu löschen und darf weder gelesen, 
weitergeleitet, veröffentlicht oder anderweitig benutzt werden.
E-Mails können durch Dritte gelesen werden und Viren sowie nichtautorisierte 
Änderungen enthalten. Domino Laser GmbH ist für diese Folgen nicht 
verantwortlich.
**************************************************************************************

Reply via email to