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

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

From: Michael R <arphaxad78_at_gmail.com>
Date: Wed, 17 Feb 2010 15:46:15 -0800 (PST)

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?

Thanks,

Michael R

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

To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2010-02-18 07:18:37 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.