info-cvs
[Top][All Lists]
Advanced

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

Re: cvs diff on repository files


From: Larry Jones
Subject: Re: cvs diff on repository files
Date: Mon, 9 Dec 2002 16:49:51 -0500 (EST)

address@hidden writes:
> 
> The cvsdiff.pl script does a cvs diff between the two revisions of each
> file and emails it to a mailing list for code review.  But the cvs diff
> inside the script fails.  Is there a solution that doesn't involve
> checking the directory out on the repository server, doing the diff, and
> removing the directory?  I noticed that the log.pl in the contrib
> directory does a cvs status, which also fails for me with a similar
> message if run on repository files.

Look very carefully at how the log.pl script works -- it runs the
command in the *current directory*, not the repository.  The current
directory is always a valid working directory (the user's working
directory in local mode, a server-side copy in client/server mode).  It
also uses the global -n flag to allow the command to work despite the
existing lock on the file.

-Larry Jones

I obey the letter of the law, if not the spirit. -- Calvin



reply via email to

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