[techtalk] making a patch from a cvs repository

Dan Nguyen nguyend7 at cse.msu.edu
Wed Dec 6 16:15:46 EST 2000


The patch should be diffed against the orginal source.  That is the
only way to guarantee it will work.  There is never a guarantee that a
patch will apply cleanly to anything other than the source the patch
was diffed against.

On Wed, Dec 06, 2000 at 10:48:27AM -0800, Anmol Khirbat wrote:
> Hi
> 
> I imported some source code into a cvs repository, did lots of changes and
> made a Larry Wall patch. The problem is that I cannot apply the patch to a
> copy of the original source cleanly. 
> 
> When I run patch, I get loads of Hunk FAILEDs and a bunch of .rej files. I
> went through all the reject files and all of them nearly identical. Here's
> one of the rej files with some lines removed.
> 
> ***************
> *** 42,48 ****
> 
> ! "$Id: errwarn.c,v 1.1.1.1 2000/12/04 22:07:32 anmol Exp $ Copyright (c)
> 
> --- 42,48 ----
> 
> ! "$Id: errwarn.c,v 1.2 2000/12/06 00:20:08 anmol Exp $ Copyright (c) 1996
> 
> Looks like something to do with the $Id$ keyword expansion. Did I goof up
> when I imported the source in the first place? Whats the right way of
> doing things? How can I produce a patch that applies cleanly to a copy of
> the original source? 
> 
> TIA 
> 
> bye :)
> Anmol
> 
> :wq
> 
> 
> 
> 
> 
> 
> _______________________________________________
> techtalk mailing list
> techtalk at linuxchix.org
> http://www.linux.org.uk/mailman/listinfo/techtalk

-- 
     Dan Nguyen     |  It is with true love as it is with ghosts;
  nguyend7 at msu.edu  |  everyone talks of it, but few have seen it.
   dnn at debian.org   |                -Maxime De La Rochefoucauld




More information about the Techtalk mailing list