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

Re: How to add directories containing binary files?

From: Ryan Schmidt <subversion-2007b_at_ryandesign.com>
Date: 2007-09-21 10:10:40 CEST

On Sep 21, 2007, at 00:27, Grant Edwards wrote:

> This seems to be a common problem. I've found multiple
> complaints and bug-reports about it. I've spend hours searching
> the book and the web and the mailing list, and I can't find a
> solution.
>
> I've got a large directory tree with lots of text files and a
> few scattered binary files. When I try to add this tree,
> subversion does fine until it finds the first binary file.
> Then it adds that file and quits.
>
> This is because I've got an auto-props rule like this:
>
> * = svn:eol-style=native

That's the problem. You've requested Subversion to add the svn:eol-
style property to *all* files, but the property is not appropriate
for binary files, thus Subversion complains, does not apply the
property, and exits. You mustn't request Subversion to apply this
property to binary files.

> And it doesn't like to set the eol-style property on binary
> files, right? Then why did it _add_ the file?

IMHO the correct behavior is for you to receive an error message and
for the file not to be added. The fact that the file was added, even
though you then received an error and the property was not set and
the rest of the process was aborted, is a filed bug:

http://subversion.tigris.org/issues/show_bug.cgi?id=2713

The text of the bug doesn't quite match your situation, so it would
be helpful if you would update the bug to include more information to
show that it's a more general problem than originally reported.
Please include a link to this email thread from the mailing list
archives at http://svn.haxx.se/users/

> Can I tell subversion to suck it up and just keep going? That
> way at least I could get 95% of the files added correctly with
> a single command and then go back and fix the binary ones.

I don't think there's a way to tell Subversion to do that. You
mustn't define your auto-props that way.

> How do I confgure auto-props so that the default is
> eol-style=native, except when the filename matches particular
> patterns?

I don't think auto-props can currently be configured in that way. For
one thing, the order in which auto-props are applied is not
guaranteed, and for another, I'm not sure there's a syntax to *unset*
a property once an auto-props rule has set it.

> Where is the pattern-matching for filenames documented?

I don't know. Asterisks are at your disposal to act as wildcards to
match any number of any character. I don't know if any other special
characters are available.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Sep 21 10:12:38 2007

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.