[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Monotone-devel] Usher crashes
From: |
Jeronimo Pellegrini |
Subject: |
Re: [Monotone-devel] Usher crashes |
Date: |
Sat, 13 May 2006 22:59:06 -0300 |
User-agent: |
Mutt/1.5.11+cvs20060403 |
> Right now I just need to find out why usher can't find the server, but
> it will eventually work. :-)
I found it.
If I use:
server "main"
host "localhost"
pattern "info.aleph0"
local "-d" "/home/jeronimo/monotone/main.db" "*"
And try to sync brahch:
info.aleph0.my_branch
Neither if I try:
server "main"
host "localhost"
pattern "info.aleph0.*"
local "-d" "/home/jeronimo/monotone/main.db" "*"
But if I use:
pattern "info.aleph0.my_branch"
it works.
It will not match. So it seems that I need to specify each branch in one
separate server?
I took a look at server_manager.cc, and found this:
if (!srv && !pattern.empty() && !by_pattern.empty())
{
i = --by_pattern.upper_bound(pattern);
if (i->first == prefix(host))
srv = i->second;
}
Is the inner if correct? Shouldn't it match against pattern, instead of
host?
Also, I tried to change "host" to "pattern", but it still doesn't match
my_branch (as above). I don't understand exactly what prefix::operator==
does.
I just started ot read the code, so I may be writing a lot of nonsense...
J.