[m-rev.] New tools command: cvsdiff
Fergus Henderson
fjh at cs.mu.OZ.AU
Thu Oct 24 16:17:51 AEST 2002
On 24-Oct-2002, Ralph Becket <rafe at cs.mu.OZ.AU> wrote:
> Fergus Henderson, Thursday, 24 October 2002:
> > > +cvs diff > $newcvsdiff
> >
> > I suggest using `cvs -n diff' here.
>
> Looking at my .cvsrc, I have `cvs diff -u -N' - would hardcoding that be
> acceptable?
No, that is different. The options that occur after `diff' can be set
in ~/.cvsrc. It's OK for your cvsdiff script to just use the values
from the user's ~/.cvsrc.
But the options that occur before `diff' can't be set in ~/.cvsrc,
except by setting them globally for all commands, and you can't set
`-n' for all commands, otherwise `cvs commit' won't work.
`cvs -n diff' avoids taking a CVS lock in each directory before doing the diff.
This speeds things up, and avoids long "waiting for lock" delays.
--
Fergus Henderson <fjh at cs.mu.oz.au> | "I have always known that the pursuit
The University of Melbourne | of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-reviews mailing list
post: mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------
More information about the reviews
mailing list