info-cvs
[Top][All Lists]
Advanced

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

Re: CVS diff generating unuseable patches ?


From: richard offer
Subject: Re: CVS diff generating unuseable patches ?
Date: Mon, 30 Oct 2000 15:16:42 -0800

* $ from address@hidden at "30-Oct: 9:56am" | sed "1,$s/^/* /"
*
*
* On Wed, Oct 18, 2000 at 05:59:06PM -0700, richard offer wrote:
* > I'm trying to generate a large patch that includes new files
* > [...]
* > But for the new files it starts creating files called /tmp/cvsxxxxx instead
of
* > the files in the directory ?
* >
* > ie looking at the diff.
* >
* >
* > Index: drivers/block/audit.c
* > ===================================================================
* > RCS file: audit.c
* > diff -N audit.c
* > *** /dev/null   Tue Aug 29 14:22:17 2000
* > --- /tmp/cvsQt9R2X  Wed Oct 18 17:09:29 2000
*
* CVS inserts the "Index:" line specifically so that this will
* work.  Well, it used to work, until the following change was
* made to patch (this is an excerpt of a much longer ChangeLog
* entry):
*     1997-06-12  Paul Eggert  <address@hidden>
*         * pch.c: Ignore Index: line if either old or new line is present, and
if
*         POSIXLY_CORRECT is not set.
*
* So, you can make it work by setting POSIXLY_CORRECT in your
* environment when you apply the patch.

Tried that, it still didn't work as expected (it failed in a different but
worse way---but I can't remember the details).

My problem is that fixing patch is not going to help me. It would mean that
everybody that wants to apply my code change will need to upgrade their version
of patch.

Given that rdiff does generate useablem shouldn't diff just use the same
logic/code ?




richard.


-----------------------------------------------------------------------
Richard Offer          Widget FAQ --> http://reality.sgi.com/widgetFAQ/
{X,Motif,Trust} on {Irix,Linux}
__________________________________________http://reality.sgi.com/offer/




reply via email to

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