On Tue, Apr 28, 2009 at 1:35 PM, Zack Weinberg <[email protected]> wrote: > On Tue, Apr 28, 2009 at 1:11 PM, <[email protected]> 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, >> >> hend...@lovesong:~/monotone$ mtn list branches --db w.db >> hend...@lovesong:~/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 _______________________________________________ Monotone-devel mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/monotone-devel
