info-cvs
[Top][All Lists]
Advanced

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

RE: CVS doLog.pl Newbie question


From: López Jeroni
Subject: RE: CVS doLog.pl Newbie question
Date: Wed, 31 Aug 2005 08:10:13 +0200

HI to everybody; thanks for all the answers I had recived,
For a question of time finally I only modified the loginfo file that creates 
the commitlog with the standard.

 > $CVSROOT/CVSROOT/commitlog  ,then I call  a perl "script",ok it is not a 
 > Super_Script with the line:
cat  /cvs/CVSROOT/commitlog|mail -s "NOTIFICATION OF CVS COMMIT..." 
address@hidden,address@hidden

When I have finished my amount of work I will try with thw log.pl again,or 
almost tri to put inside the commitlog the diferences between the last revision 
and the new one.

Thanks in advance for all the help,It had been very useful.

If some body now if it is possible to modify: DEFAULT (echo ""; id; echo 
%{sVv}; date; cat) to have de cvs diff between
revisions?

Thanks,
Jeroni
-----Mensaje original-----
De: Matthew M. Ogilvie [mailto:address@hidden
Enviado el: sábado, 27 de agosto de 2005 4:04
Para: López Jeroni
Asunto: Re: CVS doLog.pl Newbie question


Hi,

It is hard to be sure what is wrong, but some possibilities include:

1. FYI: Usually the CVSROOT environment variable is the base
   of the repository, and "cvs init" will create a "CVSROOT" directory
   under that directory.  So if variable CVSROOT="/cvs/CVSROOT", then
   you probably currently have a directory called "/cvs/CVSROOT/CVSROOT"
   where the CVS config files are at.
       You might consider setting CVSROOT to "/cvs" instead, but it is
   not worth changing if you are already successfully using CVS under
   /cvs/CVSROOT.
       See CVS documentation (installing CVS), or the main CVS mailing
   list.

2. The line you changed should probably be changed back to
   "$ENV{'CVSROOT'}", (or explicitly set it to
   "my($cvsRoot)='/cvs/CVSROOT'", but this is untested).  In perl,
   ENV stores all of your environment variables, and
   "$ENV{'CVSROOT'}" looks up the current setting of the CVSROOT
   environment variable.

3. Have you modified CVS's loginfo config file appropriately to let
   it know it should call the doLog script?  ("cvs checkout CVSROOT",
   edit CVSROOT/loginfo as described in the script,
   and commit it).  See comments in script, and/or CVS documentation.

4. It isn't clear exactly where you put the "log" directory, but for
   CVSROOT="/cvs/CVSROOT", the log directory should be
   "/cvs/CVSROOT/log".

5. Other miscellaneous issues, like having "perl" installed, permissions
   issues, consistently adding or removing the extraneous ".pl" extension
   everywhere consistently, etc.

6. FYI: Log entries should be appended to the 2 files, so whatever the
   5 and 6 bytes of existing content are, it will continue to appear before
   the first log entries.

=======
Hopefully the above can get the basic logging feature working.  To
get the email commit notification feature working:

6. The "mail" command needs to work properly when called manually, and/or
   you need to get the "accumMail" script and set it up properly.

7. You also need RCS installed (specifically the "co" command).

8. In a sandbox (not the repository), create .mailUsersOncommit, "cvs add"
   it, and commit it.


I hope this helps.


On Fri, Aug 26, 2005 at 09:53:02AM +0200, L?pez Jeroni wrote:
> Hi from Spain,
> Althought I'm trying to manage modifiying th doLog.pl script I could not do 
> it work.
> Perhaps it is that It can not work on my system, I explain what I want to do:
> 
> I explain you the cvs structure,and if you can give me an exact example,it 
> will be great.
> CVSROOT = '/cvs/CVSROOT'    (this is a sun solaris machine "unix")
> Users:(all of them linux machines,that can see cvs/CVSROOT because is mounted)
> /usr/development1
> /usr/development2
> /usr/development3
> /usr/development4
> 
> Modules:(I have a lot of...)
> crc/required
> ...
>  What I have done:
> drwxr-xr-x    2 jlopez   carm         4096 ago 10  2005 log/ (created log 
> directory inside CVSROOT)
> 
> Inside of log/ 
> -rwxrwxr-x    1 jlopez   carm            6 ago 10 2005 commitlog
> -rwxrwxr-x    1 jlopez   carm            5 ago 10  2005 filelog
> 
> Inside of the directory were I commit my files (one of my modules in a linux 
> machine)
> 
>  .mailUsersOnCommit  (That only contain one e-mail adress).
> 
> Modify the doLog.pl
> 
> 
> 
> my($cvsRoot)=$ENV{'/cvs/CVSROOT'};   
> 
> what is missing? No log is created; Can you help me?
> Thanks for your help in advance.





reply via email to

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