On Fri, Apr 09, 2010 at 09:34:39AM +1000, trentb...@gmail.com
wrote:

> Vincent Zweije wrote:
> > I presume this is seriously ungood:
> >
> >     $ darcs pull --all --patch 
> > http://www.sqlite.org/src/info/ccb9393a7a10f0970419b860af293b0bdad7f894
> >     Merging us 19/60
> >     Merging us 23/60
> >     Merging us 43/60
> >     Pulling from "/home/vincent/Lemon/darcs/trunk/tool"...
> >     Will pull the following changes:
> >     Wed Dec 10 21:10:05 CET 2008  shane
> >       * 
> > http://www.sqlite.org/src/info/ccb9393a7a10f0970419b860af293b0bdad7f894
> >       Added option (-l) to lemon parser to have it skip printing line 
> > numbers (#line ... ). (CVS 6008)
> >
> >         M ./lemon.c -19 +21
> >     darcs: src/Darcs/Patch/Real.hs:(506,21)-(507,35): Irrefutable pattern 
> > failed for pattern Data.Maybe.Just a2'

> Vincent, it would be great if you could step through
> http://wiki.darcs.net/Forensics to get more information.

I've narrowed it down to one repository (unchanged from the
original problem, the pull destination), plus one patch bundle
(the one pulled in the original problem) containing a single
patch with several hunks. That was the easy part.

Then I coalesced all of the repository history into a single
patch, and tried to get the patch bundle to apply. After
fooling around with hunk line numbers I found that one of the
hunks is trying to delete two lines which in the target file
(lemon.c) have different contents. Replacing the lines with
the actual lines in the target file makes the patch bundle
apply cleanly (with the hunk line numbers adjusted).

I do not know (yet) if the different contents are because
of a spurious change in the target repository or in the
patch bundle.

More when I have time again.

If you have suggestions where to direct my attention from
here let me know.

Ciao.                                                  Vincent.
-- 
WCC - Smart Search & Match
NL  +31 30 7503222
vzwe...@wcc-group.com
www.wcc-group.com

Attachment: signature.asc
Description: Digital signature

Reply via email to