New submission from Paul Berry <[EMAIL PROTECTED]>:

I just got an error message from Darcs saying "bug in darcs!  There was an
attempt to write an invalid pending!"

I was trying to record a patch that added a new file, and I was using the
"--ask" option to mark it as depending on an old file.

I managed to reproduce the bug with a fairly minimal test case.  I'm
attaching a .tar.gz of the state of my workspace before the bug occurred, a
transcript of my interaction with Darcs, and the pending_buggy file.

Darcs was running on x86 Linux, Debian testing distribution.

Thanks so much for your attention.  Darcs is a wonderful tool.

Paul Berry

----------
files: bug_minimal_before.tar.gz, pending_buggy, transcript.txt, unnamed
messages: 1442
nosy: EricKow, beschmi, droundy, stereotype441, tommy
status: unread
title: Bug in darcs - invalid pending

____________________________________
Darcs issue tracker <[EMAIL PROTECTED]>
<http://bugs.darcs.net/issue401>
____________________________________
I just got an error message from Darcs saying "bug in darcs!  There was an attempt to write an invalid pending!"

I was trying to record a patch that added a new file, and I was using the "--ask" option to mark it as depending on an old file.

I managed to reproduce the bug with a fairly minimal test case.  I'm attaching a .tar.gz of the state of my workspace before the bug occurred, a transcript of my interaction with Darcs, and the pending_buggy file.

Darcs was running on x86 Linux, Debian testing distribution.

Thanks so much for your attention.  Darcs is a wonderful tool.

Paul Berry

Attachment: bug_minimal_before.tar.gz
Description: GNU Zip compressed data

[EMAIL PROTECTED]:~/puerto/bug_minimal_test$ darcs record test.hs --ask
Recording changes in "test.hs":

Darcs needs to know what name (conventionally an email address) to use as the
patch author, e.g. 'Fred Bloggs <[EMAIL PROTECTED]>'.  If you provide one
now it will be stored in the file '_darcs/prefs/author' and used as a default
in the future.  To change your preferred author address, simply delete or edit
this file.

What is your email address? [EMAIL PROTECTED]
addfile ./test.hs
Shall I record this change? (1/?)  [ynWsfqadjkc], or ? for help: y

hunk ./test.hs 1
+import Test.HUnit
+
+import TestMeeples
+
+main = runTestText (PutText putResult ()) allTests
+    where putResult line _ () = putStrLn line >> return ()
+
+allTests = test
+           [TestMeeples.tests
+           ]
Shall I record this change? (2/?)  [ynWsfqadjkc], or ? for help: y


Sat Jan 27 20:19:27 PST 2007  [EMAIL PROTECTED]
  * Modularized TestMeeples
Shall I depend on this patch? (1/?)  [ynWvpxqadjkc], or ? for help: y


Sat Jan 27 20:17:09 PST 2007  [EMAIL PROTECTED]
  * Oops: too many exhausted meeples.
Shall I depend on this patch? (2/?)  [ynWvpxqadjkc], or ? for help: d

What is the patch name? Blah
Do you want to add a long comment? [yn]n

darcs: bug in darcs!
There was an attempt to write an invalid pending!
If possible, please send the contents of _darcs/patches/pending_buggy
along with a bug report.
Please report this to [EMAIL PROTECTED]
If possible include the output of 'darcs --exact-version'.
[EMAIL PROTECTED]:~/puerto/bug_minimal_test$ darcs --exact-version
darcs compiled on Oct 31 2006, at 01:26:49
# configured Mon Oct  9 15:12:44 EDT 2006
./configure --no-create --no-recursion

Context:

[TAG 1.0.9rc1
Tommy Pettersson <[EMAIL PROTECTED]>**20061008175207] 
[EMAIL PROTECTED]:~/puerto/bug_minimal_test$ 

Attachment: pending_buggy
Description: Binary data

_______________________________________________
darcs-devel mailing list
[email protected]
http://www.abridgegame.org/cgi-bin/mailman/listinfo/darcs-devel

Reply via email to