monotone-devel
[Top][All Lists]
Advanced

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

Re: [Monotone-devel] file-system archaeology


From: Zack Weinberg
Subject: Re: [Monotone-devel] file-system archaeology
Date: Tue, 28 Apr 2009 13:44:56 -0700

On Tue, Apr 28, 2009 at 1:35 PM, Zack Weinberg <address@hidden> wrote:
> On Tue, Apr 28, 2009 at 1:11 PM,  <address@hidden> wrote:
>> I'm doing some file-system archaeology again, and I've found a monotone
>> data base with no branches.  It's 311296 bytes long, so it's unlikely to
>> be empty.  Yet,
>>
>> address@hidden:~/monotone$ mtn list branches --db w.db
>> address@hidden:~/monotone$
>
> This should give you all head revision IDs, despite the absence of branches:
>
> $ mtn -d w.db execute 'select hex(id) from revisions' | tail -n +3 |
> mtn -d w.db au erase_ancestors -@ -

That's "mtn -d w.db db execute", of course.  *headdesk*

This might also be interesting:

$ mtn -d w.db db execute 'select hex(id),keypair,name,value from
revision_certs order by id,name' | less

zw




reply via email to

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