[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Monotone-devel] monotone error message: monotone: fatal: std::logic
From: |
Nathaniel Smith |
Subject: |
Re: [Monotone-devel] monotone error message: monotone: fatal: std::logic_error: database.cc:1312: invariant 'I(!null_id(id))' violated |
Date: |
Fri, 22 Jul 2005 21:15:16 -0700 |
User-agent: |
Mutt/1.5.9i |
On Sat, Jul 23, 2005 at 01:36:42AM +0100, Fred O'Rourke wrote:
> monotone: fatal: std::logic_error: database.cc:1312: invariant
> 'I(!null_id(id))' violated
[...]
> What I am doing
> Writing a gui for monotone, testing the annotate command on a database
> with files added, no branches, no data commited.
I don't have time to look more closely at this second, but I bet the
problem is that 'annotate' (which I think may work only on
already-commited files?) is forgetting to check that the file it is
being run on, actually has been committed. So it tries to load the
previous revision, whose id is null...
(Let this be yet another call for discriminated unions in C++; we're
_never_ going to see the end of these "I didn't realie that string
could be null!" bugs...)
-- Nathaniel
--
So let us espouse a less contested notion of truth and falsehood, even
if it is philosophically debatable (if we listen to philosophers, we
must debate everything, and there would be no end to the discussion).
-- Serendipities, Umberto Eco