[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

From: René Vestergaard <rve_at_techno-matic.dk>
Date: 2005-10-12 10:03:52 CEST

Now I get this error:
---------------------
"Commit failed,
 pre-commit hook failed,
 svnlook: missing argument: t"

I wrote the following in the pre-commit.cmd file on the server:
---------------------------------------------------------------
c:\subversion\svnlook dirs-changed -t %TRANS% %REPOS% | find "/tags/"
if errorlevel 1 exit 1
exit 0

Could it be because the variables %TRANS% and %REPOS% do not exist?

What did i do wrong?

-----Oprindelig meddelelse-----
Fra: Steve Williams [mailto:stevewilliams@kromestudios.com]
Sendt: 12. oktober 2005 09:04
Til: René Vestergaard
Cc: users@subversion.tigris.org
Emne: Re: Request Tag-PreCommit-Script/hook for use at the OS: Windows
Server 2003

René Vestergaard wrote:
> 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?

This may work.

svnlook dirs-changed -t %TRANS% %REPOS% | find "/tags/"
if errorlevel 1 exit 1

--
Sly
This message and its attachments may contain legally privileged or
confidential information. This message is intended for the use of the
individual or entity to which it is addressed. If you are not the addressee
indicated in this message, or the employee or agent responsible for
delivering the message to the intended recipient, you may not copy or
deliver this message or its attachments to anyone. Rather, you should
permanently delete this message and its attachments and kindly notify the
sender by reply e-mail. Any content of this message and its attachments,
which does not relate to the official business of the sending company must
be taken not to have been sent or endorsed by the sending company or any of
its related entities. No warranty is made that the e-mail or attachment(s)
are free from computer virus or other defect.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Oct 12 10:06:49 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.