Hello,

I have a short question about the commitinfo file. Following scenario:

I have a script which should do some pre-condition handling when the
user commits a file to cvs.

The check-script should only exit 0 if the user checks in the file into
HEAD or specific branch.

My problem:

How can I give the check-script the branch in which the user tries to
checkin his file? Is there is a variable like %r or %s which can I use
in the commitinfo file?

For example it would be nice if I can do following in the commitinfo:

ALL /my-cvs-root-path/checkscript.sh mybranch %b %{s}

This should call the checkscript.sh with the argument "mybranch" the
branch in which the user want to checking (%b) and all files the users
tries to checkin. The checkscript then returns exit 0 if the given
mybranch matches the branch the user tries to checkin.

I have not found yet any hints about this problem.

Many thanks,

- Thomas Wabner



_______________________________________________
Info-cvs mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/info-cvs

Reply via email to