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

How to get file contents from transaction in pre-commit-check.py?

From: Brandt, Servatius <Servatius.Brandt_at_fujitsu-siemens.com>
Date: 2005-07-18 16:55:30 CEST

I call pre-commit-check.py from the contrib/hook-scripts directory for
various pre-commit checks. It uses the SWIG/Python bindings to provide
information about the changes in the transaction. How can I use these
bindings to get also the contents of a file in the transaction? I would
like to check for the presence of a copyright header in source files.

- Servatius

Servatius Brandt Phone: +49 89 636-41504
Fujitsu Siemens Computers Fax: +49 89 636-48716
EP SW AD C++ Email: Servatius.Brandt@fujitsu-siemens.com

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Jul 18 16:57:13 2005

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.