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

Pre-commit hook assistance

From: William Muriithi <william.muriithi_at_gmail.com>
Date: Fri, 30 Aug 2019 09:01:16 -0400

Morning,

I am attempting to write a pre-commit hook that enforces a policy to some
group and warns the rest of the team. The hook is in python and it just
check that jira ticket exist on the commit log.

The problem I am facing is I am not able to both warn and error for
some reason. If I exit, the failure reason is displayed to the user.

If I don't exit, but attempts to send a warning to the client, nothing
show up even in the logs.

I am using sys.stderr.write and sys.stdout.write for error and warning
respectively. Is it technically possible to do this? Would be grateful
for your help on this.

Regards,
William
Received on 2019-08-30 15:01:34 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.