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

Re: <Is it a bug?> Re: User Hook Scripts

From: golan davidovits <golandav_at_yahoo.com>
Date: Fri, 9 Jan 2009 04:33:22 -0800 (PST)

I use the collabnet command line utility for running the svn commands from inside the hook.
The failure on pre-commit hook was as i mentioned "File or Directory "." is out of date, try updating"
and it happened after the hook tried to delete svn:mergeinfo properties during the hook run.
It didn't happen when running it from start commit hook.

Anyway, i managed to resolve my problem. I wanted to use start commit hook because you can see the hook result before the commit runs.
So what i did is added "svn status CWD >commit.log" to the hook beginning and created the changed file list myself.
I then went over the file and extracted the paths from the "M" status lines and run propdel svn:mergeinfo.

It could be nice if in the future each client side hook script will have disable\enable checkbox.

Thanks for the help

----- Original Message ----
From: Stefan Küng <tortoisesvn_at_gmail.com>
To: users_at_tortoisesvn.tigris.org
Sent: Thursday, January 8, 2009 8:40:40 PM
Subject: Re: <Is it a bug?> Re: User Hook Scripts

golan davidovits wrote:
> Thanks for the comment Stefan
> The shift to using Pre-Commit hook creates a different problem.
> Now when the hook removes a property i get an error that the working copy is not updated and the commit fails.
> "File or Directory "." is out of date, try updating"
> I tried to run update after the propdel but it didn't help.
> Please let me know if you have any suggestion.

What's the exact error message you get?
Also, if you're using a TSVN nightly build, you have to use the svn.exe
from our nightly build server too, otherwise the CL client can't access
the working copy.


  oo  // \\      "De Chelonian Mobile"
(_,\/ \_/ \     TortoiseSVN
   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
   /_/   \_\    http://tortoisesvn.net
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2009-01-09 13:33:34 CET

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