[Top][All Lists]

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

Re: a commit script

From: Mark D. Baushke
Subject: Re: a commit script
Date: Thu, 13 Mar 2003 08:13:35 -0800

Derkaoui <address@hidden> writes:

> Thanks a lot for answering,
> here are my answer:
> * The version of cvs you are using.:  > cvs-1.11.5 


I am not sure why you consider "." to be a "HEAD" 'branch' as the
default cvs sources do not have any patch to pass the branch on the
command line, just the directory and the list of modified files are the
arguments. You didn't mention any special patches to cvs 1.11.5 to alter
this behavior...

> * The version of the host operating system you are using: 
>  > Debian  Linux:2.2.20-idepci

> * The line of the commitinfo file that is calling your program
> might help to determine if all the arguments make sense.
>  > ALL /usr/local/src/cvsssupport/commit.branch ${USER}


I don't understand why you don't just use $ENV{'USER'} inside your perl
script to get the same value as the environment's ${USER}, but what you
have should work.

the commit.branch script will have the userid as the first argument, the
directory as the second argument and the list of file(s) to be modified
as the third and subsequent arguments.

>  I suggest you debug the program outside of the context of cvs to
>  see if it works as you expect: 
> > Yes i did, and i give enough arguments: root, $CVSROOT/myproj,
> fichier, but still have the same problem, if the number of the
> arguments wasn't enough i will then get: "script commit.branch
> invoked wrongly" .

And if the arguments are correct, does the program exit with a zero
return status? We are not really in the business here of debugging
perl program fragments on this list.

There are example programs in the contrib directory for doing access
control and the mailing list also has other examples that folks have
> * If you compiled your own cvs from sources, what configure
>  arguments did you use.  
> > i compiled the source with the option to let the root to commit,
> the proof that i can commit it's when i comment the lines calling
> branchIsLocked, then no problem.


        Good luck,
        -- Mark

reply via email to

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