[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: CVS Pragma - extensibility for CVS
From: |
Mike Castle |
Subject: |
Re: CVS Pragma - extensibility for CVS |
Date: |
Tue, 10 Oct 2000 12:54:22 -0500 |
User-agent: |
Mutt/1.3.6i |
On Tue, Oct 10, 2000 at 05:12:43PM -0000, Martin Cleaver wrote:
> > This is such a GREAT idea!!! Could it PLEASE become part of the
> > mainstream?!? I was planning to add subcommands to CVS, but dread
> having to
> > change the client, since I have no clue how to rebuild it like I
> can the
> > server side. With this feature I can just add scripts.
You don't need to add this to CVS. Just create a commitinfo job that you
can use to submit arbitrary commands (or more or less arbitrary commands).
You have a file that always just has one line it in or whatever. Whenever
it gets commited, the commitinfo job looks at it and take apporpriate
action.
Example, the connent of the file could be:
chgrp new-group top-level-directory
Then the commitinfo script would do something like verify that you own
those files, then do the chgrp (note the syntax of the file is similar to
what would be used for the unix chgrp command, but that is purely
coincidental).
No need at all to enhance CVS.
mrc
--
Mike Castle Life is like a clock: You can work constantly
address@hidden and be right all the time, or not work at all
www.netcom.com/~dalgoda/ and be right at least twice a day. -- mrc
We are all of us living in the shadow of Manhattan. -- Watchmen