[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: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Fri, 19 Feb 2010 22:39:02 +0100

On 19.02.2010 22:24, Michael R wrote:
> I *did* implement an issue tracker plugin...with an interface that
> talks to Subversion, as I mentioned above. The user, in my example
> above, uses the issue tracker plugin that I wrote, and their commit
> executes the post-commit script I am talking about. My original
> question is still not being answered.
>
> In a post-commit hook, when I am handed a list of local committed
> files from Tortoise (the first parameter in a post-commit hook), how
> can I convert them into their proper protocol (http://, svn:// or file:///)
> format and send them to my issue tracker? My issue tracker needs the
> files with their respective protocol, not the local path to the
> particular machine where the commit occurred.

You have the commonUrl parameter in the plugin method, and you have the
commonRoot parameter. You can use those two and do a little string
manipulation to find the paths relative to the commonRoot, then prepend
the commonUrl to those relative paths and you got your urls.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=2449410
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2010-02-19 22:39:19 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.