Is there a way I can set up a client-side script/hook/setting/whatever to have a default message in the TortoiseSVN Commit dialog?
(I want to put some text there to remind me to note bug number when I check in code.)
That means the Subversion status is normal. As soon as you start editing a file, the status changes to modified and the icon overlay then changes to a red exclamation mark. That way you can easily see which files were changed since you last updated your working copy and need to be committed.
TortoiseSVN is a really easy to use Revision control / version control / source control software for Windows. It is based on Apache™ Subversion (SVN)®; TortoiseSVN provides a nice and easy user interface for Subversion.
The main difference between SVN and TortoiseSVN is that the SVN is a distributed version control system while TortoiseSVN is an SVN client implemented as a Microsoft Windows shell extension. In brief, SVN is a version control system. On the other hand, TortoiseSVN is a Subversion client.
You can set the bugtraq:url and bugtraq:warnifnoissue properties on your repository, so that a gentle warning is shown when no bug number provided.
http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-dug-bugtracker.html
Edit
Ok... here's another way. You can create a Start-commit hook within TSVN:
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 the hook using TSVN -> Settings -> Hook Scripts -> Add Set the working copy path to the path you wish it to apply for (or e.g. c:\ if you want it to apply for everything on your c drive) Set the command line to execute to:
wscript c:\[Path to script]\message.vbs
Tick the two check boxes.
Now when you click commit, the vbs will get passed the location of the temporary message file, it appends your message and then gets displayed in the commit dialog.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With