[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Monotone-devel] branch patterns
From: |
Stephen Leake |
Subject: |
Re: [Monotone-devel] branch patterns |
Date: |
Tue, 29 Mar 2011 03:36:46 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (windows-nt) |
Hendrik Boom <address@hidden> writes:
> On Sun, Mar 27, 2011 at 06:08:50PM +0200, Richard Levitte wrote:
>>
>> Thanks. That does seem weird, but to make sure we have all details,
>> what output do you get on the client side if you do this?
>>
>> mtn ls vars
>
> When I do this client-side command outside of a workspace, no output at
> all.
With mtn 1.0, you should get:
mtn: misuse: no database specified
With 0.99.1, you get no output, because it is silently using a freshly
created memory database, which has no variables defined.
With 0.46, you get "no database specified". I forget when it switched to
silently using a memory database.
> But when I do it in the same workspace I reported on before, there's a
> whole lot of stuff.
You can get the same list with
mtn -d <database> ls vars
> Is this normal, or is there a lot of historical cruft that might be
> getting in the way?
Yes :). This is normal, and it is a list of all the servers you have
connected to with this database.
You can delete the old variables with
mtn -d <database> unset <domain> <name>
> address@hidden:~/write/Melinda$ ls
> Melinda _MTN
> address@hidden:~/write/Melinda$ mtn ls vars
> database: default-exclude-pattern
> database: default-include-pattern *
> database: default-server mtn://topoi.pooq.com
> known-servers: 172.25.1.11 599ffffec98e8155a17f3bbf177de27a409d4824
> known-servers: 4691://topoi.pooq.com/write
> 599ffffec98e8155a17f3bbf177de27a409d4824
> known-servers: mtn://topoi.pooq.com 599ffffec98e8155a17f3bbf177de27a409d4824
> server-exclude: 172.25.1.11
> server-exclude: 4691://topoi.pooq.com/write
> server-exclude: monotone://topoi.pooq.com/write
> server-exclude: mtn://topoi.pooq.com
> server-exclude: mtn://topoi.pooq.com/write
> server-exclude: ssh://address@hidden/~hendrik/monotone/write.db
> server-include: 172.25.1.11 *
> server-include: 4691://topoi.pooq.com/write *
> server-include: monotone://topoi.pooq.com/write *
> server-include: mtn://topoi.pooq.com *
> server-include: mtn://topoi.pooq.com/write *
> server-include: ssh://address@hidden/~hendrik/monotone/write.db *
> address@hidden:~/write/Melinda$
When you do:
mtn sync
it uses the value of 'default-server' (here mtn://topoi.pooq.com) to
find what to connect with, then searches thru server-exclude,
server-include for matching servers, and uses the found patterns. In
this case, that is '' for exclude, '*' for include.
Which means it should work.
You should also try specifying the include pattern explicitly:
mtn -d <database> sync "mtn://topoi.pooq.com?*"
what does that give?
Some of the server strings above have '/write' in them. If that is
correct, you should try:
mtn -d <database> sync "mtn://topoi.pooq.com/write?*"
Once you get it working with the explicit syntax, do
mtn -d <database> sync --set-default ...
to store the values in the database variables as the default to use in
the future; then 'mtn sync' will work.
--
-- Stephe