[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Single-commit import with properties and SVN 1.7

From: Markus Schaber <m.schaber_at_3s-software.com>
Date: Mon, 22 Aug 2011 12:00:50 +0200

Hi,

We need to add a new directory including files and properties to a
subversion repository "in-place".

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.

With SVN 1.7, I only see a way to do this with 2 commits:
- svn remote add the data directory. (First commit)
- checkout the data directory
- fill the data directory with contents (files and properties)
- svn commit the data directory. (Second commit).
(This is analogeous to the "in-place import" in the FAQ.)

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/paren
t".

Best regards

Markus Schaber

___________________________
We software Automation.

3S-Smart Software Solutions GmbH
Markus Schaber | Developer
Memminger Str. 151 | 87439 Kempten | Germany | Tel. +49-831-54031-0 |
Fax +49-831-54031-50

Email: m.schaber@3s-software.com | Web: http://www.3s-software.com
CoDeSys internet forum: http://forum.3s-software.com
Download CoDeSys sample projects:
http://www.3s-software.com/index.shtml?sample_projects

Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner |
Trade register: Kempten HRB 6186 | Tax ID No.: DE 167014915
Received on 2011-08-22 12:04:58 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.