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

Re: client side hook script - check if a file is part of an external

From: Stefan Hett <stefan_at_egosoft.com>
Date: Tue, 13 Sep 2016 11:13:10 +0200

Hi Jens,

On 9/12/2016 6:45 PM, Jens Wilhelm wrote:
> I have defined a start-commit-hook in the Tortoise-settings.
> Usually users call TortoiseProc.exe /command:commit /path:"%SOMEWHERE%". In my hook-script I want to check if the path is part of an external. Thought that svn info could help me. But I didn't find a way yet. Any ideas?
This should work. Make sure the path to the svn info command is correct
(and points to the external file - not to the wc root). See:
http://svnbook.red-bean.com/en/1.7/svn.advanced.externals.html "When
examining the file external with *svn info*, you can see the URL and
revision the external is coming from: [...]"

-- 
Regards,
Stefan Hett
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3185595
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2016-09-13 11:13:21 CEST

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