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

Altering source file contents with hooks

From: Eric Thomas <eric_at_psteering.com>
Date: 2005-03-07 21:36:37 CET

 
Hi all,
 
I'm curious - is there a way, using any of the Subversion pre-/post-/start-commit hooks, to alter the actual contents of a source file before it's committed? For example, we might want to add a commented copyright notice to every source file, or run every file through a "pretty-printer" program to standardize formatting.
 
I looked through the docs and didn't find anything - it doesn't seem like any hooks allow direct access to the file. Am I missing something?
 
Thanks in advance...
 
Eric Thomas
Release Manager
PowerSteering Software, Inc.
 
Received on Mon Mar 7 21:39:07 2005

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