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

Re: Single-commit import with properties and SVN 1.7

From: Mark Phippard <markphip_at_gmail.com>
Date: Mon, 22 Aug 2011 12:31:36 -0400

On Mon, Aug 22, 2011 at 6:00 AM, Markus Schaber
<m.schaber_at_3s-software.com>wrote:

> 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.)
>

This also should work:

$ svn co --depth=empty url://server/repos/parent tmp
$ fill with data directory and files
$ svn add data
$ set properties
$ svn ci -m Commit the data folder

$ svn co url://server/repos/parent/data real_dir

-- 
Thanks
Mark Phippard
http://markphip.blogspot.com/
Received on 2011-08-22 18:32:08 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.