RE: Issue related to pre-commit hook
From: <Sukhada.Bhide_at_emerson.com>
Date: Thu, 28 Jan 2016 09:38:47 +0000
Simon,
Yes version 1.7 supports hook, we have applied those for other projects and its working.
I am copying contents of pre-commit.cmd file as given below :
-------------------------------------------------------------------------------------------------------------------------------------------------
set REPOS=%1
set PATH=c:\python27;
--------------------------------------------------------------------------------------------------------------------------------------------------
And also below are contents of “pre-commit-hook.py”
"""
Based on
http://svn.collab.net/repos/svn/branches/1.2.x/contrib/
hook-scripts/commit-block-joke.py and hooks/pre-commit.tmpl
Hacked together by Jacques Marneweck
Under Windows and Python 2.5, the output of SVNLOOK was lost
"""
import sys, os, string
SVNLOOK='C:\\"Program Files (x86)"\\"VisualSVN Server"\\bin\\svnlook.exe'
def main(repos, txn):
p = subprocess.Popen(log_cmd,
log_msg = p.stdout.read().rstrip('\n')
if len(log_msg) < 10:
Please enter a commit message in format shown below which details what has changed during this commit.""")
sys.stderr.write ("""
Changed Files------: Mentioned the names of the changed files.
Description:
Target release-----: Mention the milestone release for which the bug/feature is being worked on.
sys.exit(1)
if __name__ == '__main__':
Issue is we are not able to get following message :
Changed Files------: Mentioned the names of the changed files.
Description:
Target release-----: Mention the milestone release for which the bug/feature is being worked on.
In below window while committing:
[cid:image001.png_at_01D14C82.7ED9FDD0]
Sukhada Bhide | Desk: +91(20)42001672
From: Simon Large [mailto:simon.tortoisesvn_at_gmail.com]
On 27 January 2016 at 06:36, <Sukhada.Bhide_at_emerson.com<mailto:Sukhada.Bhide_at_emerson.com>> wrote:
Dear SVN Helpdesk representative,
Our team is using following version of Tortoise SVN:
TortoiseSVN
This is a very old version of TortoiseSVN. Have you tried the latest version? Did 1.7 even support client side hooks? I don't remember.
I need help regarding pre-commit-hook
Attached is zip file which contains python file “pre-commit-hook.py” which we have configured.
No it doesn't. You can't generally attach code files like .cmd and maybe .py and expect them to get through mail filters. Try pasting the text of the pre-commit hook directly into the email.
Simon
------------------------------------------------------
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.