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

Re: How can a start_commit_hook modify the list of files?

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Thu, 23 Aug 2012 19:44:54 +0200

On 23.08.2012 13:38, Hans wrote:
> I want to run a client-side hook that may modify versioned files, and
> I want these files to be added to the list of files to commit. For a
> test, I created a start_commit_hook that opens the file which is
> passed into the script as first parameter (PATH). Whatever I do to
> this file (add or remove lines, even delete the file), it doesn't
> change the list of files which the commit dialog displays.
>
> The help file says under "Start-commit": "You might want to use this
> if the hook modifies a versioned file and affects the list of files
> that need to be committed and/or commit message." This seems to
> indicate it can be done...

If you pass the parent folder to the commit command when you start it,
then you can modify files below that and those modifications will show up.

However if you start the commit dialog with a list of files to be
committed, that list can't be changed by the hook script.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3000526
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2012-08-23 19:45:06 CEST

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.