[Top][All Lists]

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

Re: CVS novice question

From: Derek R. Price
Subject: Re: CVS novice question
Date: Fri, 02 Mar 2001 09:25:21 -0500

address@hidden wrote:

> Hello all,
>           I have a question for all CVS gurus.
> We have a soft. dev. project with development on Window as well as
> Solaris.
> I need to create a diff file which i can use to "patch" it on Solaris.
> I have added new files to project (on windows NT). These files are
> not yet added into the CVS repository. How can i create a diff file
> between the CVS server and my machine so that it will also contain
> the new files i have added to my project locallly.
> cvs diff [??]

'cvs diff' works, kinda, but you have to 'cvs add' the files first.

I say "kinda" because up until the dev version of Feb. 13, there was a
bug that caused added files to be named incorrectly for most versions of
patch.  What this meant was that patch would cause all new files to be
created in '.' rather than wherever they came from.

The work around, if you're not daring enough to grab a dev version of
CVS, is to edit the patch file you created with 'cvs diff' by hand and
insert the full path to new files on the correct lines.  This should be
scriptable - there's enough information in the diff files CVS creates -
it's just that no single patch implementation I could get my hands on or
find documentation for knew how to interpret all of it.


Derek Price                      CVS Solutions Architect ( )
mailto:address@hidden     OpenAvenue ( )
Take my advice, I don't use it anyway.

reply via email to

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