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

Re: Post-Commit Hook Protocol (http, svn, file) in Tortoise SVN

From: Jean-Marc van Leerdam <j.m.van.leerdam_at_gmail.com>
Date: Thu, 18 Feb 2010 07:33:25 +0100

Hi,

On 18 February 2010 00:46, Michael R <arphaxad78_at_gmail.com> wrote:
> I'm building a post-commit client hook for Tortoise SVN.  This hook
> communicates with another application that keeps a separate record of
> the commits that occur.  When the hook is executed, I want to pass the
> list of files that were committed to the other application.  My
> problem is that this list of files doesn't include the full protocol
> to the file--just the local system path.  How can I get TortoiseSVN to
> give me the full protocol path (http:// or file:/// or svn://)?
>
> For example:
> -Now I am being handed a list of files through the PATH file
> parameter, i.e.:
> C:\local repository\project1\thisfile.txt
> C:\local repository\project1\anotherfile.txt
>
> -Because this hook could be used by people committing files either
> through some Apache web server or through a svnserve service, I'd like
> to be handed the full path, like this:
>
> http://someserver/project1/thisfile.txt
> http://someserver/project1/anotherfile.txt
>
> or
>
> svn://someserver/project1/thisfile.txt
> svn://someserver/project1/anotherfile.txt
>
> What's the best way to do this?
>

What is the reason you are not using server side hooks for this? The
client side will only catch your local commits done through TSVN; any
other commit -- through different SVN clients or from other machines
will not be caught.

And why is it relevant to see/know the protocol that was used for the commit?

The server side will know the repository location of the affected
files, not the local working copy paths nor the protocol that was used
(I think).

-- 
Regards,
Jean-Marc
--
.       ___
.  @@  // \\      "De Chelonian Mobile"
. (_,\/ \_/ \     TortoiseSVN
.   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
.   /_/   \_\     http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=2448661
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2010-02-18 07:33:35 CET

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

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