Manual pre-commit hook: message text empty
From: M Ward <wardies_at_gmail.com>
Date: Thu, 8 Oct 2015 04:24:01 -0700 (PDT)
Reproducible in latest V1.9.2:
The CCommitDlg::OnBnClickedRunhook() function calls CHooks::Instance().ManualPreCommit(...) with m_sLogMessage as the message parameter.
However, this value is initially empty and only gets set when the user presses the OK button, where the CCommitDlg::OnOK() function sets:
m_sLogMessage = m_cLogMessage.GetText();
I can verify this by creating a dummy pre_commit_hook that always exits with status 1. Now, if I press the OK button first, then the "Run hook script" button, the message I had when I pressed the OK button is what gets sent to the manual_pre_commit_hook script.
If I never press the OK button, when I press the "Run hook script" button, the temp file containing the message text is always zero bytes.
------------------------------------------------------
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
|
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.