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

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

From: René Vestergaard <rve_at_techno-matic.dk>
Date: 2005-10-25 16:23:03 CEST

>> 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
Received on Tue Oct 25 16:27:10 2005

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.