[darcs-users] rollback bug

Derrick Moser dm24_99 at yahoo.com
Sun Oct 3 03:06:26 UTC 2004


I did some experimenting.  It looks like using "darcs
remove" with multiple file names is what created the
empty hunk.

Cheers,
Derrick

$ darcs initialize
Successfully initialized repository!
$ touch foo bar
$ darcs add foo bar
$ darcs remove foo bar
$ cat _darcs/patches/pending
{
addfile ./foo
addfile ./bar
hunk ./bar 1
rmfile ./foo
rmfile ./bar
}

--- David Roundy <droundy at abridgegame.org> wrote:

> On Thu, Sep 30, 2004 at 06:08:12AM -0700, Derrick
> Moser wrote:
> > I'm getting this message when I attempt to
> rollback my
> > last patch:
> > 
> >   Fail: bug in darcs!
> >   Impossible case at Patch.lhs:2123 compiled
> 21:29:34
> > Sep 27 2004
> >   Please report this to
> darcs-users at abridgegame.org
> > 
> > I'm using darcs version 1.0.0rc2.
> > 
> > I have put a copy of the repo here:
> > 
> >  
> http://www3.sympatico.ca/d.moser/_darcs-bug.tar.bz2
> > 
> > To reproduce the problem, create a new repo, pull
> in
> > the two patches then try to run "darcs rollback".
> 
> I see the problem, and it looks like this is
> actually two bugs.
> 
> The trouble comes because the following three
> primitive patches:
> 
> addfile ./FileScrollViewSizer.cc
> hunk ./FileScrollViewSizer.cc 1
> rmfile ./FileScrollViewSizer.cc
> 
> The hunk patch is a patch that makes no changes, and
> that is confusing the
> rollback, which causes the impossible case in
> Patch.lhs that you see.  I've
> now fixed this.
> 
> The remaining question is how the empty hunk patch
> got created in the first
> place.  :( Do you remember what you did with
> FileScrollViewSizer.cc that
> might have caused this patch to be created?
> -- 
> David Roundy
> http://www.abridgegame.org
> 



		
__________________________________
Do you Yahoo!?
Y! Messenger - Communicate in real time. Download now. 
http://messenger.yahoo.com




More information about the darcs-users mailing list