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

Re: Issue related to pre-commit hook

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Thu, 28 Jan 2016 20:44:39 +0100

On 28.01.2016 10:38, Sukhada.Bhide_at_emerson.com wrote:
> Simon,
>
> Yes version 1.7 supports hook, we have applied those for other projects
> and its working.
>
> I am copying contents of pre-commit.cmd file as given below :
>
> -------------------------------------------------------------------------------------------------------------------------------------------------
>
> setlocal
>
> set REPOS=%1
>
> set REV=%2
>
> set PATH=c:\python27;
>
> python.exe "C:\Repositories\Project\hooks\pre-commit-hook.py" %REPOS% %REV%

That looks like you're trying a server-side commit hook.
In that case, please ask on the svn users list for help.

But...

>
> --------------------------------------------------------------------------------------------------------------------------------------------------
>
> And also below are contents of “pre-commit-hook.py”
>
> """
>
> Subversion pre-commit hook which currently checks that the commit
>
> contains a commit message to avoid commiting empty changesets
>
> which tortoisesvn seems to have a habbit of committing.

Why don't you just set the
tsvn:logminsize
property on your working copy root or the repo root?

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=3157511
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2016-01-28 20:43:48 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.