[darcs-devel] [issue1226] Error applying hunk to file

Zooko bugs at darcs.net
Thu Nov 13 02:51:51 UTC 2008


New submission from Zooko <zooko at zooko.com>:

Occasionally when I attempt to run "darcs query contents --quiet -- 
match "hash  
20080827183950-92b7f-1aed175f9fff0fb5d8907ca5c492643d7b8bf788.gz"  
"CREDITS"

I get:

darcs failed:  Error applying hunk to file ./src/allmydata/test/ 
test_system.py

This is on this repository:

http://allmydata.org/source/tahoe/trunk-hashedformat

Oh!  And look at this: "darcs check" finds a truncated line, then  
"darcs repair" says "already consistent, no changes made", then  
"darcs check" finds everything consistent!  Seems like there is a  
sporadic bug in zlib or bytestring usage or so.

source at org:~/darcs/tahoe/trunk-hashedformat-aside$ time darcs check - 
v -v -v -v 2>&1 | tee /tmp/x.log.txt
Checking patch 467/3191 : Mon Apr 16 19:29:57 PDT 2007   
warner at allmydata.com
Checking patch 953/3191 : Fri Jul 13 16:38:25 PDT 2007   
warner at lothar.com
Checking patch 1284/3191 : Wed Sep 19 11:50:13 PDT 2007   
warner at allmydata.com
Checking patch 1623/3191 : Mon Nov 19 11:04:50 PST 2007   
warner at allmydata.com
Checking patch 1730/3191 : Sat Dec 22 08:49:20 PST 2007  zooko at zooko.com
Checking patch 1854/3191
Checking patch 2097/3191 : Wed Feb  6 16:39:03 PST 2008   
warner at allmydata.com
Checking patch 2281/3191 : Mon Mar 10 19:59:30 PDT 2008  zooko at zooko.com
Checking patch 2386/3191 : Sun Apr  6 22:09:56 PDT 2008   
secorp at allmydata.com
Checking patch 2420/3191 : Fri Apr 11 11:11:30 PDT 2008   
secorp at allmydata.com
Checking patch 2564/3191 : Fri May 16 18:04:05 PDT 2008   
secorp at allmydata.com
Checking patch 2846/3191 : Thu Aug  7 11:45:46 PDT 2008   
warner at lothar.com
Checking patch 3006/3191 : Thu Sep 25 14:34:33 PDT 2008  zooko at zooko.com
Reading pristine 366/379
Checking that patch names are unique...
Checking patches...
Looks like we have a difference...
Difference:  hunk ./src/allmydata/test/test_system.py 1886
-        def _got_repair_results(ou
+        def _got_repair_results(out):

Inconsistent repository!

real    0m14.867s
user    0m11.290s
sys     0m2.160s
source at org:~/darcs/tahoe/trunk-hashedformat-aside$ darcs repair
The repository is already consistent, no changes made.
source at org:~/darcs/tahoe/trunk-hashedformat-aside$ time darcs check - 
v -v -v -v 2>&1 | tee /tmp/x.log.txt
Checking patch 448/3191 : Thu Apr 12 19:41:48 PDT 2007   
warner at allmydata.com
Checking patch 914/3191 : Tue Jul 10 15:28:38 PDT 2007   
warner at lothar.com
Checking patch 1271/3191 : Tue Sep 18 15:04:30 PDT 2007  zooko at zooko.com
Checking patch 1590/3191 : Fri Nov  9 16:14:36 PST 2007  zooko at zooko.com
Checking patch 1661/3191 : Mon Dec 10 16:35:08 PST 2007   
warner at lothar.com
Checking patch 1731/3191 : Sat Dec 22 08:49:35 PST 2007  zooko at zooko.com
Checking patch 1774/3191 : Thu Jan  3 14:55:43 PST 2008  zooko at zooko.com
Checking patch 1934/3191
Checking patch 2063/3191 : Tue Feb  5 13:27:41 PST 2008   
warner at allmydata.com
Checking patch 2138/3191 : Wed Feb 13 02:57:19 PST 2008  amber at yukyuk
Checking patch 2271/3191
Checking patch 2382/3191 : Thu Apr  3 16:08:22 PDT 2008   
warner at allmydata.com
Checking patch 2526/3191 : Tue May  6 08:23:36 PDT 2008  zooko at zooko.com
Checking patch 2668/3191 : Tue Jun 10 11:55:28 PDT 2008   
warner at allmydata.com
Checking patch 2863/3191 : Tue Aug 12 13:55:17 PDT 2008   
warner at allmydata.com
Checking patch 3036/3191 : Mon Oct  6 16:16:20 PDT 2008   
warner at allmydata.com
Checking that patch names are unique...
Checking patches...
The repository is consistent!

real    0m17.789s
user    0m11.140s
sys     0m2.210s

----------
messages: 6660
nosy: dagit, dmitry.kurochkin, kowey, simon, thorkilnaur, zooko
status: unread
title: Error applying hunk to file

__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/issue1226>
__________________________________


More information about the darcs-devel mailing list