You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by René Vestergaard <rv...@techno-matic.dk> on 2005/10/25 14:23:03 UTC

SV: Request Tag-PreCommit-Script/hook for use at the OS: Windows Server 2003 (repository-path in the Pre-Commit hook)

>> René Vestergaard wrote:
>>
>> Subject = Request Tag-PreCommit-Script/hook for use at the OS: Windows
Server 2003
>>
>> I need af way to prevent changes/commits to branches under:
>>   SomeProject/tags/
>>
>> The script/hook examples I found do not work for me,
>> because the subversion server run on a PC with Windows Server 2003.
>>
>> How can i make a precommit-script that prevents commits to Tags?

> Steve Williams  wrote:
>This may work.
>
>svnlook dirs-changed -t %TRANS% %REPOS% | find "/tags/"
>if errorlevel 1 exit 1

When the command "svnlook dirs-changed" is runned in the Pre-Commit hook
it returns the repository-path of the last completed/preformed commit action
and Not the repository-path of commit that is about to be done,
which was what i needed in the first place.

How can I get the repository-path in the Pre-Commit hook
of commit action that is about to be preform?


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org