[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: Wed, 14 Jan 2009 06:01:03 -0800 (PST)

Hi,

I noticed today that there is a difference between Tortoise 1.5.5 and 1.5.6 in treating this issue internally.
Specifically, if you rename or move file or folder with 1.5.5 you get mergeinfo property, but with 1.5.6 you don't!
Is this a known fix? because i didn't see a reference in release notes.

Thanks,
Golan

----- Original Message ----
From: golan davidovits <golandav_at_yahoo.com>
To: users_at_tortoisesvn.tigris.org
Sent: Friday, January 9, 2009 2:33:22 PM
Subject: Re: <Is it a bug?> Re: User Hook Scripts

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
Golan

----- 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.

Stefan

-- 
       ___
  oo  // \\      "De Chelonian Mobile"
(_,\/ \_/ \     TortoiseSVN
   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
   /_/   \_\    http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=1012154
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=1013665
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=1024190
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2009-01-14 15:01:15 CET

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