[darcs-devel] [issue589] buggy error message: Impossible case in darcs PatchRead.lhs or Patch/Read.lhs

Michael Abbott michael at araneidae.co.uk
Sat Jan 26 16:38:46 UTC 2008


> darcs get  http://darcs.net/repos/unstable

Works fine (takes forever, but I guess that's the 5,077 separate http 
requests) and build fine.

I reproduces the original message by writing rubbish into one of the Yi 
patch files; now I get the message:

$ ../darcs/unstable/darcs repair
darcs: failed to read patch:
Mon Aug 15 02:25:46 BST 2005  Don Stewart <dons at cse.unsw.edu.au>
   * kill off silly ^M in test data
Couldn't parse file 
/home/mga83/working/Haskell/yi.hack/_darcs/patches/20050815012546-9c5c1-2181b0dfc6b06ff299fa072570ab0c9417ae5715.gz
$

Seems fair enough, and if I delete the offending file I get the extra text 
on the end of the filename:
 	: openBinaryFile: does not exist (No such file or directory)

Seems ok to me.

One oddity I noticed, don't know if it signifies anything: while reading 
the patches it starts counting up reporting:
 	Reading patches from /home/mga83/working/Haskell/yi.hack 14/331
... except there are a good deal more that 331 to read!  When the number 
(14 above) grows above 331 the /331 goes away.
     I don't know if this signifies anything, but it's new behaviour since 
the stable version.


More information about the darcs-devel mailing list