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

TortoiseSvn : client hook script fails when commit deleted files

From: Derek Wallace <del.wallace_at_gmail.com>
Date: Tue, 2 Feb 2010 00:33:02 -0800 (PST)

HI,
Ive been using client side hook script successfully for last few months to block users committing to tags.
I use the start_commit_hook and pre_commit_hook hooks.

My scripts are written in tcl and i am running 1.5.8.

The issue im having is when i delete a file.
1. i use TortoiseSvn to delete a file.
2. i then select the parent folder and perform a commit.
3. my start_commit_hook script runs fine.
4. the TortoiseSvn commit dialog box opens fine.
5. i enter my commit message.
6. hit ok.
7. my pre_commit_hook script doesnt run and i immediately get a dialog box with the message
"ERROR: The hook script returned an error:"

Nothing else.

To debug further i created a new precommit.tcl script. All it does is exit with code 0

"exit 0"

The problem still exists. When i commit a deleted file i get the above error.
When i commit a modified file there is no issue.

Is this a bug with TortosieSVN?

Thanks
derek

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2444052

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2010-02-02 10:03:16 CET

This is an archived mail posted to the TortoiseSVN Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.