[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: Grant Edwards <grante_at_visi.com>
Date: 2007-09-21 16:44:58 CEST

On 2007-09-21, Ryan Schmidt <subversion-2007b@ryandesign.com> wrote:

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

I know that now. :)

People have bin tripping over this issue for years.

> IMHO the correct behavior is for you to receive an error message and
> for the file not to be added.

Agreed.

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

Done.

>> 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 define the properties that are to be used for
non-binary files?

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

auto-props would be far more powerful and usefule if it did
something as simple as searched the rules in order and stopped
on first match, or if it searched rules in order and allowed a
property to be deleted by a rule. Either one would make it
vastly more useful.

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

Maybe I just don't understand how to use it, but
auto-properties doesn't seem to me to be very useful the way
it's currently implemented.

-- 
Grant Edwards                   grante             Yow! I wonder if there's
                                  at               anything GOOD on tonight?
                               visi.com            
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Sep 21 16:45:41 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.