How do I use a start commit hook in TortoiseSVN to setup a custom log entry? -


i'd automate tortoisesvn part of commit process. i'd dynamically create log entry commit dialog.

i know can launch commit dialog either commandline or right clicking on folder , selecting svncommit.

i'd use start commit hook setup log entry. thought worked passing entry file name in messagefile variable when add hook script cannot see variable (hook launched after right clicking , choosing svncommit).

when try using commandline use /logmsgfile parameter seems have no effect.

i'm using tortoisesvn 1.5.3.

looks own misunderstanding of the api caused problem.

solution:
1) i've added start commit hook script tortoisesvn using hooks gui in settings area of right click menu.

2) script receive 3 pieces of information: path messagefile cwd
details see: manual
these passed command line arguements script - reason had thought set temporary environmental variables.

my script opens file specified second arguement , adds in custom text.

when commit dialog comes custom text there.

3) best of if tortoisesvn launched script directly commit dialog:
e.g. [ tortoiseproc /command:commit /path:. /closeonend:1 ]
hooks still called.


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -