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:35:13 -0700

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 -@ -

You should then be able to check one of them out with 'mtn co -ri:<id>'

zw




reply via email to

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