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

Re: directory-based auto-props

From: Ryan Schmidt <subversion-2006c_at_ryandesign.com>
Date: 2006-07-05 23:09:18 CEST

On Jul 5, 2006, at 22:55, Sven Brueggemann wrote:

> I need to import quite a large project. It's files are organized
> in several directories and the filenames have over a hundred
> different extensions. Binary files are always in different
> directories than textual files.
>
> During the import, I need to set the svn:eol-style property to
> "native" on textual files. How can I accomplish that?
>
> With an auto-prop "* = svn:eol-style=native" the import fails
> on binary files. A file name pattern dir/* doesn't seem to
> work or I don't get the syntax right.
>
> Any hints?
>
> I already considered setting eol-style after the import but
> that drastically increases the repository size, so if
> possible, I'd like to set it during import.

Hello. You may want to use an in-place import rather than the
traditional "svn import". See:

http://subversion.tigris.org/faq.html#in-place-import

You make an empty directory in the repository, then check that out on
top of the directory you're going to import (or preferably over a
copy of that directory in case something goes wrong).

Then you can "svn add" all files. ("svn add" operates recursively by
default.)

Then you can go into the directories that you know to contain text
files and set the "svn:eol-style" property on all of them ("svn
propset" has a recursive switch).

Or, if you have a zillion directories with text files, and only a few
with binary files, recursively set "svn:eol-style" on all files
initially, then go back in and remove the property from all files in
the binary files directories.

Then, once your working copy is all set up, you can "svn commit" it
to send it up to the repository all at once.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jul 5 23:10:36 2006

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.