monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Monotone-devel] fatal error: mtn add <filename>


From: Thomas Keller
Subject: Re: [Monotone-devel] fatal error: mtn add <filename>
Date: Thu, 28 Jan 2010 14:10:56 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.1.5) Gecko/20091130 SUSE/3.0.0-66.3 Lightning/1.0b2pre Thunderbird/3.0

Am 28.01.2010 12:59, schrieb Malte Thoma:
> Hi Thomas,
> 
> I just figured out (part of) the problem:
> For unknown reasons the revision number in _MTN/revsion was unknown in the
> database. After I setting this to the last known revision, the 'mtn add' 
> worked.
> 
> I would recommand an check for this and suggestion how to correct this to the 
> user.

Actually, newer versions of monotone (from 0.46 onwards) fail like this
if the old_revision is unknown:

mtn: misuse: parent revision 0000000000000000000000000000000000000003
does not exist, did you specify the wrong database?

This should point the user to _MTN/revision (hopefully), otherwise we
can of course easily expand the error message.

(Note to self: `mtn annotate` still fails with the old invariant and
didn't got this new error message!)

> How and when the unknown revision number entered _MTN/revision will remain a
> mystery, I'm afraid :-(

Yeah, it would be interesting how it got there, if you just followed
"normal development" practises...

Thomas.

-- 
GPG-Key 0x160D1092 | address@hidden | http://thomaskeller.biz
Please note that according to the EU law on data retention, information
on every electronic information exchange might be retained for a period
of six months or longer: http://www.vorratsdatenspeicherung.de/?lang=en


Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]