darcs

Issue 101 pull => Unapplicable patch (1.0.5) - Debian Bug#348634

Title pull => Unapplicable patch (1.0.5) - Debian Bug#348634
Priority bug Status resolved
Milestone Resolved in
Superseder Nosy List darcs-devel, dmitry.kurochkin, ijones, kowey, kraai, thorkilnaur, tommy
Assigned To
Topics

Created on 2006-01-18.07:11:28 by ijones, last changed 2009-08-27.13:50:19 by admin.

Messages
msg385 (view) Author: ijones Date: 2006-01-18.07:11:27
Matt Kraai <kraai@ftbfs.org> writes:

> Package: darcs
> Version: 1.0.5-3
>
> When I try to pull all of the changes from the upstream directory to
> the debian directory, darcs fails:

Does running 'darcs repair' actually fix the problem, or not?

Darcs upstream, is this a known bug?

peace,

  isaac

>> $ cd debian
>> $ darcs pull --all ../upstream
>> Pulling from "../upstream"...
>> 
>> darcs failed:  user error (Error applying patch to recorded.
>> Running 'darcs repair' on the target repo may help.
>> user error (Error applying hunk to file ./ChangeLog))
>> Your repository is now in an inconsistent state.
>> This must be fixed by running darcs repair.
>> 
>> 
>>
>
> You can download a tarball of the two repositories from
>
>  http://people.debian.org/~kraai/unpullable.tar.gz
>
> -- 
> Matt
msg386 (view) Author: kraai Date: 2006-01-18.07:19:00
On Tue, Jan 17, 2006 at 11:11:19PM -0800, Isaac Jones wrote:
> Matt Kraai <kraai@ftbfs.org> writes:
> 
> > Package: darcs
> > Version: 1.0.5-3
> >
> > When I try to pull all of the changes from the upstream directory to
> > the debian directory, darcs fails:
> 
> Does running 'darcs repair' actually fix the problem, or not?

When I run 'darcs repair' in the upstream directory, it produces the
following error message:

> Applying patch 24 of 24... done.
> Unapplicable patch:
> Thu Jan 12 15:45:45 PST 2006  Matt Kraai <kraai@ftbfs.org>
>   * Imported autogen-5.8.1
>   into Darcs repository
> 
> 
> 
> darcs failed:  Error applying hunk to file ./ChangeLog

I guess this is the cause of the unpullable patch.
msg617 (view) Author: tommy Date: 2006-04-14.15:28:12
On Wed, Jan 18, 2006 at 07:19:01AM +0000, Matt Kraai wrote:
> When I run 'darcs repair' in the upstream directory, it produces the
> following error message:
> 
> > Applying patch 24 of 24... done.
> > Unapplicable patch:
> > Thu Jan 12 15:45:45 PST 2006  Matt Kraai <kraai@ftbfs.org>
> >   * Imported autogen-5.8.1
> >   into Darcs repository
> > 
> > darcs failed:  Error applying hunk to file ./ChangeLog
> 
> I guess this is the cause of the unpullable patch.

The upstream repo somehow got corrupted. When this happens it is
usually not darcs fault but some other program that has recursed
down into the _darcs metadata dir and accidently modified
darcs's internal views of the repo. But sometimes it has shown
to be bugs in darcs that corrupts a repo. Two such bugs were
fixed in 1.0.6; one could happen with 'darcs get --tag' on a
repo with "out of order" patches, and one could happen when
applying hunk patches with special conditions. It is probably
impossible to tell from just a corrupted repo if one of these
bugs caused the corruption, or if there is still a bug in darcs.
msg1875 (view) Author: kowey Date: 2007-07-19.07:09:49
Folks, I'm resolving this by fiat.

The problem is that we don't have a way of telling if there really is a darcs
bug or not, so there's not much we can do with this.

There is a feature request to make darcs more resistant to corruption from
outside tools (issue230 : single file pristine cache), so hopefully if somebody
implements this, this kind of thing would happen a lot less often.
History
Date User Action Args
2006-01-18 07:11:28ijonescreate
2006-01-18 07:19:01kraaisetstatus: unread -> unknown
nosy: droundy, tommy, ijones, kraai, 348634
messages: + msg386
2006-01-31 13:21:17droundysetnosy: - 348634
2006-04-14 15:28:16tommysetnosy: droundy, tommy, ijones, kraai
messages: + msg617
2007-07-19 07:10:35koweysetstatus: unknown -> resolved
nosy: + kowey, beschmi
messages: + msg1875
title: Bug#348634: Unable to pull changes -> pull => Unapplicable patch (1.0.5) - Debian Bug#348634
2007-07-19 07:26:48koweylinkissue86 superseder
2009-08-06 17:39:13adminsetnosy: + markstos, jast, Serware, dmitry.kurochkin, darcs-devel, zooko, dagit, mornfall, simon, thorkilnaur, - droundy, ijones, kraai
2009-08-06 20:36:04adminsetnosy: - beschmi
2009-08-10 21:42:32adminsetnosy: + ijones, kraai, - markstos, darcs-devel, zooko, jast, dagit, Serware, mornfall
2009-08-25 17:52:55adminsetnosy: + darcs-devel, - simon
2009-08-27 13:50:19adminsetnosy: tommy, kowey, darcs-devel, ijones, kraai, thorkilnaur, dmitry.kurochkin