[Monotone-devel] Unwanted branch certs

2005-06-20 Thread Peter Simons
Hi,

I see some odd behavior when trying sync a database. The
server prints these messages during the sync:

 | monotone: beginning service on localhost : 5253
 | monotone: accepted new client connection from 127.0.0.1:54214
 | monotone: allowed '[EMAIL PROTECTED]' read permission for 'system\.crypto.*'
 | monotone: allowed '[EMAIL PROTECTED]' write permission for 'system\.crypto.*'
 | monotone: rebuilding merkle trees ...
 | monotone: warning: Dropping branch certs for unwanted branch 
system.crypto.etc.mail
 | [...]

What does it mean for a branch to be unwanted? Especially,
since it clearly _is_ wanted. Any ideas?

Peter



___
Monotone-devel mailing list
Monotone-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/monotone-devel


Re: [Monotone-devel] Unwanted branch certs

2005-06-20 Thread Matt Johnston
On Mon, Jun 20, 2005 at 12:27:17PM +0200, Peter Simons wrote:
  | monotone: beginning service on localhost : 5253
  | monotone: accepted new client connection from 127.0.0.1:54214
  | monotone: allowed '[EMAIL PROTECTED]' read permission for 
 'system\.crypto.*'
  | monotone: allowed '[EMAIL PROTECTED]' write permission for 
 'system\.crypto.*'
  | monotone: rebuilding merkle trees ...
  | monotone: warning: Dropping branch certs for unwanted branch 
 system.crypto.etc.mail
  | [...]
 
 What does it mean for a branch to be unwanted? Especially,
 since it clearly _is_ wanted. Any ideas?

Looking at the code (paraphrased):

if (voice == server_voice)
  ok = app.lua.hook_get_netsync_write_permitted(name(), remote_peer_key_name);
...
if (!ok)
  W(F(Dropping branch certs for unwanted branch %s));

I think that warning is actually that the user doesn't have
write permission (ie, check your hooks). The allowed write
permission printed earlier looks like it's always printed,
whether they have permission or not (since now the hooks
check permissions per-branch, not per collection/regex).

Could you check that your
get_netsync_write_permitted(branch,key) hook looks right? If
that is the problem, I'll look at making the printed output
more correct.

Matt



___
Monotone-devel mailing list
Monotone-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/monotone-devel