Subject: Creating a file using patch after cvs diff
From: pa@see.signature.invalid (Pierre Asselin)
Date: 3/31/2007 5:37:39 PM
Zeh Mau <chefmuetze@web.de> 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
_______________________________________________
info-cvs mailing list
info-cvs@nongnu.org
http://lists.nongnu.org/mailman/listinfo/info-cvs
|