[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: Thu, 18 Feb 2010 21:22:16 +0100

On 18.02.2010 20:38, Michael R wrote:
>> And why is it relevant to see/know the protocol that was used for the commit?
>
> It's relevant because my application stores the commits paths and
> allows the user to click "get history" without having to go to
> subversion or TSVN. To do a "get history" on that file from the app,
> I need to know what the protocol is and the full path (C:/workspace/
> file1.txt is only helpful to the user who performed the commit....
> svn://someserver/workspace/file1.txt can be viewed by anyone).
>
> You said I can't get this information from a server-side hook. Can I
> get it from a client-side hook?

You don't need that information, because you already know it.
You'll get the paths relative to the repository root. So just Prepend
those paths with the url of the repository root and you have your full path.
Sure, you will need a different script for every repository, but that
shouldn't be a problem.

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