Re: cvs diff and added files

2001-02-08 Thread Derek R. Price
Karl Fogel wrote: > Hmmm. If CVS produced a patch where the `diff', `---', and `+++' > lines gave the path to the filename, would patch then behave the way > you want? Yes it would. I'm not sure all three locations are necessary, but that's what I've been doing and that is what the example on

Re: cvs diff and added files

2001-02-08 Thread Ian Lance Taylor
"Derek R. Price" <[EMAIL PROTECTED]> writes: > According to my patch man page, it appears CVS is relying on some POSIX > behavior which tells patch to read the filename on the 'Index:' line and not > the later 'diff', '---', and '+++' lines. Unfortunately, my implementation > of patch appears to

Re: cvs diff and added files

2001-02-08 Thread Derek R. Price
Ian Lance Taylor wrote: > "Derek R. Price" <[EMAIL PROTECTED]> writes: > > > According to my patch man page, it appears CVS is relying on some POSIX > > behavior which tells patch to read the filename on the 'Index:' line and not > > the later 'diff', '---', and '+++' lines. Unfortunately, my im

Re: cvs diff and added files

2001-02-08 Thread Karl Fogel
Hmmm. If CVS produced a patch where the `diff', `---', and `+++' lines gave the path to the filename, would patch then behave the way you want? But would this break patches in some other way? The question is, what is the standard diff format by which patch will correctly apply changes, and add

Re: cvs diff and added files

2001-02-08 Thread Derek R. Price
Karl Fogel wrote: > "Derek R. Price" <[EMAIL PROTECTED]> writes: > > Is there a good reason that 'cvs diff' (with at least unified format) of > > a repository containing added files creates a file that when run through > > patch creates the new files at the top level regardless of their > > origi

Re: cvs diff and added files

2001-02-08 Thread Karl Fogel
"Derek R. Price" <[EMAIL PROTECTED]> writes: > Is there a good reason that 'cvs diff' (with at least unified format) of > a repository containing added files creates a file that when run through > patch creates the new files at the top level regardless of their > original location? I think maybe

cvs diff and added files

2001-02-08 Thread Derek R. Price
Is there a good reason that 'cvs diff' (with at least unified format) of a repository containing added files creates a file that when run through patch creates the new files at the top level regardless of their original location? Derek -- Derek Price CVS Solutions Architect