Subversion (TortoiseSVN) - default check message?

Is there a way to configure the script / hook / setting / any client interface to have a default message in the Commit TortoiseSVN dialog box?

(I want to put some text in there to remind me to note the error number when checking the code.)

+6
svn tortoisesvn
source share
1 answer

You can set the bugtraq: url and bugtraq: warnifnoissue properties in your repository so that a gentle warning is shown if no error number is specified.

http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-dug-bugtracker.html


Edit

Okay ... different here. In TSVN, you can create a "Start at Start" hook:

Save this as a .vbs file locally:

'Get the arguments - ( PATH MESSAGEFILE CWD ) 'http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-dug-settings.html#tsvn-dug-settings-hooks Set ArgObj = WScript.Arguments dim file file = ArgObj(1) 'OPen the log message Set objFSO = CreateObject("Scripting.FileSystemObject") Set objFile = objFSO.OpenTextFile(file, 2, 1) 'Write in the warning objFile.Write("Don't forget to add a bug case!!!") objFile.Close 

Add a hook using TSVN → Settings → Hook scripts → Add Set the working copy path to the path to which you want to apply (or, for example, c: \ if you want it to apply to everything on your drive c) Set for command lines the following command:

 wscript c:\[Path to script]\message.vbs 

Check two boxes.

Now, when you press commit, vbs gets the transferred location of the temporary message file, it adds your message and then appears in the commit dialog.

+8
source share

All Articles