Johan Corveleyn wrote:
>>> On Tue, Sep 1, 2009 at 12:55 PM, Radomir Zoltowski
>>> <radomir.zoltowski_at_s3group.com
>>>
>> <mailto:radomir.zoltowski_at_s3group.com>>
>>
>>> wrote:
>>>
>>> Hi all,
>>>
>>> I am having a little problem to make svnsync work through
>>> post-commit +
>>> pre-revprop-change pair. My setup is logically identical to
>>>
>> this one:
>>
>>> http://blogs.open.collab.net/svn/2007/08/mirroring-repos.html
>>>
>>> However, if I perform a commit as a user other than
>>>
>> 'svnsync', the
>>
>>> post-commit works to the point that is executes pre-revprop-
>>>
>> change on
>>
>>> the mirror. Then the pre-revprop-change on mirror fails as it
>>>
>> sees
>>
>>> $USER
>>> as my username instead of 'svnsync'. It fails with:
>>>
>>> Warning: post-commit hook failed (exit code 1) with output:
>>> svnsync: Revprop change blocked by pre-revprop-change hook
>>>
>> (exit
>>
>>> code 1)
>>> with output:
>>> Only the svnsync user may change revision properties as this
>>>
>> is a
>>
>>> read-only, mirror repository.
>>>
>
> What does your pre-revprop-change hook look like on the mirror?
>
> Johan
>
> ------------------------------------------------------
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2390150
>
> To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
>
It's again, very much generic.
USER="$3"
if [ "$USER" = "svnsync" ]; then exit 0; fi
echo "Only the svnsync user may change revision properties as this is a
read-only, mirror repository." >&2
exit 1
Radomir
The information contained in this e-mail and in any attachments is confidential and is designated solely for the attention of the intended recipient(s). If you are not an intended recipient, you must not use, disclose, copy, distribute or retain this e-mail or any part thereof. If you have received this e-mail in error, please notify the sender by return e-mail and delete all copies of this e-mail from your computer system(s).
Please direct any additional queries to: communications_at_s3group.com.
Thank You.
Silicon and Software Systems Limited. Registered in Ireland no. 378073.
Registered Office: South County Business Park, Leopardstown, Dublin 18
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2390210
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-09-02 16:27:58 CEST