[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Patch command execution

From: Daniel Berlin <dan_at_dberlin.org>
Date: 2002-02-07 17:50:38 CET

On Thursday, February 7, 2002, at 11:33 AM, Karl Fogel wrote:

> Daniel Berlin <dan@dberlin.org> writes:
>> There's no way around that, actually.
>> It auto-skips the rest of the patch.
>> Ideally, what you want it to do, is match hunks that exist, and ignore
>> them if they are the same, but apply those hunks that don't exist.
>>
>> But of course, patch, on detecting one reversed hunk, will skip the
>> rest
>> of the patch.
>
> Arrgh. If that's the case, then I guess we can't pass -N, and we'll
> have to live with the occasional bogus reject.

I could rewrite that code in patch to do what we want, if we are willing
to distribute our own version of patch.

It actually sets a stupid flag in the code named "skip_rest_of_patch".
It's about a 10 line change, maximum (Theoretically a 1 line change, but
there might be other stupidity down the line).

It was at this point I started looking around for an internal diff/patch
library.
:P

--Dan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:37:05 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.