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

Re: svn commit: r1486463 - in /subversion/trunk/tools/server-side/svnpubsub: revprop-change-hook.py svnpubsub/client.py svnpubsub/server.py watcher.py

From: Daniel Shahaf <danielsh_at_apache.org>
Date: Sun, 26 May 2013 21:22:48 +0000

On Sun, May 26, 2013 at 08:06:47PM -0000, brane_at_apache.org wrote:
> +def main(repo, revision, author, propname, action):
> + else:
> + sys.stderr.write('Unknown revprop change action "%s"\n' % action)
> + return

Maybe sys.exit(1)? Otherwise the stderr output will likely go unnoticed
(libsvn_repos discards stderr when the exit code is zero).

> +if __name__ == "__main__":
> + if len(sys.argv) != 6:
> + sys.stderr.write("invalid args\n")
> + sys.exit(0)
> +

Same.
Received on 2013-05-26 23:22:56 CEST

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

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