[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

editing files via a commitinfo script?

From: Justin Dubs
Subject: editing files via a commitinfo script?
Date: Fri, 5 Oct 2001 03:40:53 -0400

Several developers are using a c++ code repository hosted on an OpenBSD 2.9
box.  We'd like to have a script automatically run on commits that would run
a code beautifier on whatever code we submit.  This way if we later update
we will have nice pretty code.  :-).

The probem I am having is that I can't figure out how to hook this script
into cvs.  Commitinfo in CVSROOT will let a script run on commits, but the
file i want to edit doesn't exist on the server, just the cvs version of the

How can I make a script run on commits, server-side if possible, that would
actually have access to the raw text of the C++ file being commited and
could in fact modify it before the commit actually happens?

Or, will I have to dive into the cvs code and implement this "feature"
myself? :-).

Thanks a lot guys,

Justin Dubs

reply via email to

[Prev in Thread] Current Thread [Next in Thread]