[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Monotone-devel] Re: Broken database variables
From: |
Bruce Stephens |
Subject: |
[Monotone-devel] Re: Broken database variables |
Date: |
Wed, 06 Jul 2005 13:19:30 +0100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
Peter Simons <address@hidden> writes:
> After upgrading to the latest version from venge.net
> (44ed8807bead656889fb5022f974e13a7169098c), I see junk when
> listing the database variables:
>
> $ monotone ls vars
> database: default-collection net.venge.monotone
> database: default-pattern net.venge.monotone
> database: default-server off.net
> database: uçÚº[\¢Y^rب net.venge.monotone
> database: uçÚº[lz»Þ off.net
> known-servers: off.net 70a0f283898a18815a83df37c902e5f1492e9aa2
> known-servers: venge.net 70a0f283898a18815a83df37c902e5f1492e9aa2
>
> Any idea how I can fix that?
I don't think they'll be a problem. It looks like the variable name
used to be unencoded, but now are base64 encoded. I'm basing that on
doing:
monotone db execute "select name,unbase64(value) from db_vars"
and
monotone db execute "select unbase64(name),unbase64(value) from db_vars"
If that's so, then the following (untested) ought to work:
monotone db execute "delete from db_vars where name='default-server'"
monotone db execute "delete from db_vars where
name='default-collection'"
Or maybe just creating a new database and then syncing that against
your old one would work; I imagine vars are database-specific.
Anyway, it looks like a cosmetic thing.