[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: a commit script
Mark D. Baushke
Re: a commit script
Wed, 12 Mar 2003 13:30:11 -0800
Derkaoui <address@hidden> writes:
> I hope somebody could help me with these:
> I am using a script to control commit , here it is ( only the part
> that i think cause the probleme):
> # commit.branch <username> <repository> <files1> <branch1> [<file2>
> <branch2> ...]
[...perl program fragment elided...]
cvs only cares that your program return a zero or a non-zero return code.
A non-zero return code will abort the commit and a zero return code will
allow it to continue. How you choose to make that decision is up to you.
I suggest you debug the program outside of the context of cvs to see
if it works as you expect.
In future e-mail to info-cvs, you may wish to include a few more
'important' bits of information:
* The version of cvs you are using.
* The version of the host operating system you are using
for both the client and (if known) the server.
* If you compiled your own cvs from sources, what configure
arguments did you use. If not, what distirbution of cvs
are you using?
* The relevant configuration information for example
the line of the commitinfo file that is calling your program
might help to determine if all the arguments make sense.
> Every time I commit I receve this message :
> Branch 'HEAD' on module 'myproj' (myproj/fichier) is locked for
> cvs commit: Pre-commit check failed
> cvs commit: Examining myproj
> cvs [commit aborted]: correct above errors first
BTW: Have you looked in the documentation in cvs.info-8 or cvs.texinfo
with the item "cannot commit files as 'root'" ?
> I am the root, and at first I created my proj directory with fichier
> as file in it, import it to the repository, i didn't create any
> module or a branch ( i am new to cvs and I don't know how to create
> a module or a branch).
> any help?
Look at the example contrib/cvs_acls and the contrib/commit_prep scripts
in the cvs source distribution.
Look at the on-line manual and FAQ in www.cvshome.org to search for
terms like 'module' and 'branch' also, look in the info-cvs mail
archives at http://mail.gnu.org/archive/html/info-cvs/ a reasonable
search string that might get you started is 'branch access'
> Thank you.
> M. Derkaoui
- a commit script, Derkaoui, 2003/03/12
- Re: a commit script,
Mark D. Baushke <=