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

Re: 1.9 Client side hook

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Thu, 21 Apr 2016 18:41:35 +0200

On 21.04.2016 17:48, Aria Roller wrote:
> I'm experiencing an issue with client side hooks that I cant
> explain.
>
> I'm running a fairly simple client side hook for precommit,
> postcommit, preupdate and post update. These hooks simply take the
> params passed by the hook and print them to a text file. I've found a
> re-occuring issue that is not 100% of the time... the hooks appear to
> be passing invalid temp file names.
>
> For example: pre-commit hook has 4 params: Path Depth Msgfile CWD
>
> The paths given do not always point to an actual file but it seems
> the hex may be bit shifted? Path given by hook:
> C:\Users\name\AppData\Local\Temp\svnCD6C.tmp Doesnt exist however
> this file is created: C:\Users\name\AppData\Local\Temp\svnCD6E.tmp
>
> Same goes for the MsgFile... Have you seen this before? What other
> information can I provide?

The files passed to the script are temp files. They are deleted after
executing the hook. So if your hooks only print the params and exit and
you then go looking for the files they might not be there any more.

> In addition the Path file does not contain the list of files being
> committed. its just a blank file. The message file occasionally has
> the commit message but not always. Any ideas?

temp files are re-used if the old ones got deleted.

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=3169746
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2016-04-21 18:41:40 CEST

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.