bug-patch
[Top][All Lists]
Advanced

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

Re: [bug-patch] two different hunks erroneously get applied to the very


From: Andreas Grünbacher
Subject: Re: [bug-patch] two different hunks erroneously get applied to the very same spot
Date: Tue, 5 Sep 2017 17:28:24 +0200

2017-09-04 20:37 GMT+02:00 Benno Schulenberg <address@hidden>:
>
> Op  4-09-2017 om 18:37 schreef Andreas Grünbacher:
>>
>> 2017-09-04 18:04 GMT+02:00 Benno Schulenberg <address@hidden>:
>>>
>>> The original testor.c has this:
>>> $ wc testor.c
>>>    95  388 2719 testor.c
>>
>>
>> Not in my testing:
>>
>> $ wc testor.c
>>   103  415 2983 testor.c
>
>
> Ouch.  Attached a wrong testor.c?  I could have sworn I attached
> the correct, unpatched file.  :|  Now then.

I could reproduce now. It seems that locate_hunk starts scanning the
input file too high up after applying the first hunk, and so it
"finds" the same position again. I guess last_frozen_line is set
wrong, but I haven't finished debugging the code yet.

Thanks,
Andreas



reply via email to

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