info-cvs
[Top][All Lists]
Advanced

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

Re: Creating a file using patch after cvs diff


From: Pierre Asselin
Subject: Re: Creating a file using patch after cvs diff
Date: Sat, 31 Mar 2007 16:53:23 +0000 (UTC)
User-agent: tin/1.6.2-20030910 ("Pabbay") (UNIX) (NetBSD/3.1_RC3 (i386))

Zeh Mau <address@hidden> wrote:

> cvs add new.c
> cvs delete old.c
> commit -m "Change" old.c new.c

> cvs diff -N -rFirst -Newest > mypatch.patch

Try "cvs patch" instead of "cvs diff".  It has built-in
options to create a working patch (-N is only one of them).


> patch -E < mypatch.patch
> Unfortunately, new.c has not been created because of:

> Hmm...  Looks like a normal diff to me...
> can't find file to patch at input line 5

I think that's because you left out the -c (or -u)
option to cvs diff.  Does the patchfile say that
the original is /dev/null ?


-- 
pa at panix dot com


reply via email to

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