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

[TSVN] Feature Request: Optionally put the Bug ID above the log message

From: Matthew Draper <matthew_at_trebex.net>
Date: 2004-08-26 09:31:05 CEST

Hi!

I suggest the following change, to make the (log message)-(bug ID)
relationship optionally configurable. Below is a patch, but:

 1) I'm not much of a C++ programmer, and am not familiar with CString;
     this is basically an educated guess
 2) I don't currently build TSVN, and this is consequently untested :(

Thus, this email is more feature request than patch, realistically. :)

<patch>
--- LogPromptDlg.cpp.head 2004-08-26 12:30:30.689171200 +0930
+++ LogPromptDlg.cpp 2004-08-26 12:40:39.674849600 +0930
@@ -332,7 +332,12 @@
         {
                 CString sBugID = m_BugtraqInfo.sMessage;
                 sBugID.Replace(_T("%BUGID%"), m_sBugID);
- m_sLogMessage += _T("\n") + sBugID + _T("\n");
+ if (sBugID.Find(_T("%LOGMSG%")) != -1) {
+ sBugID.Replace(_T("%LOGMSG%"), m_sLogMessage);
+ m_sLogMessage = sBugID;
+ } else {
+ m_sLogMessage += _T("\n") + sBugID + _T("\n");
+ }
                 UpdateData(FALSE);
         }
         CResizableDialog::OnOK();
</patch>

-- 
matthew@trebex.net

Received on Thu Aug 26 10:32:03 2004

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.