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

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.

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=3141420

To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2015-10-08 17:13:45 CEST

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.