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

Re: Config file problem

From: Andy Levy <andy.levy_at_gmail.com>
Date: Wed, 15 Sep 2010 15:30:00 -0400

On Wed, Sep 15, 2010 at 15:24, Nicolas Goutte
<nicolas.goutte_at_extragroup.de> wrote:
> Am 15.09.2010 um 21:21 schrieb Edward Diener:
>
>> On 9/15/2010 1:50 PM, Andy Levy wrote:
>>> On Wed, Sep 15, 2010 at 13:45, Edward Diener
>>> <eldlistmailingz_at_tropicsoft.com>  wrote:
>>>> On 9/15/2010 12:15 PM, Andy Levy wrote:
>>>>> On Wed, Sep 15, 2010 at 12:04, Edward Diener
>>>>> <eldlistmailingz_at_tropicsoft.com>    wrote:
>>>>>> I modified the TSVN config file to enable auto properties with
>>>>>> "enable-auto-props = yes" and add auto properties for various file
>>>>>> types. Yet when I try to add a file to a repository I get a
>>>>>> message
>>>>>> telling me the commit failed because "svn:mime-type is not set".
>>>>>> The
>>>>>> commit has a pre-commit hook which checks for it. My config file
>>>>>> is:
>>>>>> The error message is:
>>>>>>
>>>>>> "Commit failed (details follow):
>>>>>> Commit blocked by pre-commit hook (exit code 1) with output:
>>>>>> /home/subversion/boost/hooks/check-mime-type.pl:
>>>>>>
>>>>>> sandbox/variadic_macro_data/boost/variadic_macro_data/detail/
>>>>>> VMDDetail.hpp
>>>>>> :
>>>>>> svn:mime-type is not set"
>>>>>>
>>>>>> The file I am attempting to commit has an .hpp extension.
>>>>>> Anybody have
>>>>>> any idea why this is not working ?
>>>>>
>>>>> Check the properties on the added file; are they set?
>>>>
>>>> The file was never added to the repository.
>>>
>>> That doesn't matter. Once you do svn add, if you check the Subversion
>>> properties of the file, they should be there.
>>
>> TSVN gives the "Text status" as "added" but the file is not in the
>> repository. So I can not do an Add... since the file does not show
>> among
>> those to be added, and the Commit... always fails with the error
>> message
>> given.
>
> So the file seems to have been added. Good!
>
> So the question is now: does the auto-props have been added to that
> file? (This is independant of the question if the commit was
> successful or not.=

In this context, it's not independent, because the pre-commit hook
rejects the commit if the properties are not set appropriately. If he
didn't add the properties himself, then auto-props worked.

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2660465

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2010-09-15 21:30:51 CEST

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