On Wed, Sep 15, 2010 at 15:21, Edward Diener
<eldlistmailingz_at_tropicsoft.com> wrote:
> 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.
It really sounds like you're missing a key piece of the workflow of
Subversion here. Please read the manual.
To do an Add, it takes two steps. First you Add the file, which
informs the WC that the file is to go into the repository an if
configured for auto-props sets those properties. Then you need to
commit the change before it will appear in the repository.
>>>>
>>>> Try this: *.hpp = svn:eol-style=native;svn:keywords=Id;svn:mime-type=text/plain
>>>>
>>>> Note that there is no space after the semicolon.
>>>
>>> The same error occurs.
>>
>>
>> Did you revert (undo the Add), then re-add the .hpp file? Are you
>> still getting the error on the same file?
>
> I reverted and then I was able to add it without error. But when I used
> the Repo-Browser to see if it was there, it was not. I then try to
> Commit... it, and finally it works properly. The file is now in the
> repository.
>
> The theme seems to be: first Add..., then Commit... to get it in the
> repository.
Yes, because that's the correct workflow with Subversion.
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2660463
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2010-09-15 21:29:50 CEST