Hi,

I'm working on a CVS source tree where I only have read-only access. 
So when I do some change I try to produce a patch that could be 
easily applied.

I have a subtree that looks like

kernel
  \---current
        \---src
        \---include

And I have a modified source(kapi.cxx) and an include (kapi.h) file 
in src and include

In the module directory I type:

cvs -q diff -u -r > mypatch.txt 

And the ouput is like this:

Index: current/include/kapi.h
===================================================================
RCS file: /cvs/ecos/ecos/packages/kernel/current/include/kapi.h,v
retrieving revision 1.9
diff -u -r1.9 kapi.h
--- kapi.h      2000/08/25 17:33:31     1.9
+++ kapi.h      2000/09/15 00:42:19
@@ -186,6 +186,15 @@

[ diff output ... ]

Index: current/src/common/kapi.cxx
===================================================================
RCS file: /cvs/ecos/ecos/packages/kernel/current/src/common/kapi.cxx,v
retrieving revision 1.12
diff -u -r1.12 kapi.cxx
--- kapi.cxx    2000/08/25 17:33:31     1.12
+++ kapi.cxx    2000/09/15 00:42:19
@@ -277,6 +277,10 @@

[ diff output ... ]


This seems correct except this:

--- kapi.cxx    2000/08/25 17:33:31     1.12
+++ kapi.cxx    2000/09/15 00:42:19

It should be the full name, like in the Index just above.

When I try to apply the patch, it doesn't find the files and I have 
to type all the files names. I have seen other patchs where there was 
the full name.

How can I have them the full name in the patch output ? 

I use cvs that came with wincvs (cvs.exe v.1.10.5) and I have the 
cygwin diff (v 2.7-cygwin-990830) and patch (v2.5).

Thanks a lot.

-- 
Fabrice Gautier













Reply via email to