David Martin writes:
>
> Suppose, as before, my directory structure is simply a -- b -- c. Assume that I
> have specified a line in "commitinfo" for a, one for b, and one for c. The line
> for a calls prog_a, the line for b calls prog_b, and similarly for c.
>
> From the top level, I call cvs commit.
>
> Which of my programs gets executed? The one for a, or all three of them? If
> all three of them get executed, and prog_a returns 0, prog_b returns 0, and
> prog_c returns non-zero, will the commit operation complete normally for a and
> b?
Assuming you've setup commitinfo correctly, all three of them will be
executed. Note that the directories that will be looked up in
commitinfo will be a, a/b, and a/b/c, so you need to be a little careful
that you get the regular expressions right so that you don't get
accidental matches instead of the intended ones. Note that the lines in
commitinfo are tried in order and the *first* one that matches is used,
so you can also use ordering to get the right match.
All of the commitinfo programs are called before the actual commit
happens, so if any of them fails, the entire commit is cancelled, not
just the files in that directory.
-Larry Jones
Apparently I was misinformed. -- Calvin