Re: branch patterns

Hendrik Boom <[email protected]>
Newsgroups gmane.comp.version-control.monotone.devel
Message-ID <[email protected]>
Forgot to mentin versions.  Just noticed the server is running 0.99.1

hendrik@april:~/monotone$ mtn --version
monotone 0.99.1 (base revision: 8973482283db7c36780dce2b54721ccc0f5b7388)
hendrik@april:~/monotone$ 

whereas the client is running 0.48:

hendrik@notlookedfor:~$ mtn --version
monotone 0.48 (base revision: 844268c137aaa783aa800a9c16ae61edda80ecea)
hendrik@notlookedfor:~$ 

Could this be the problem?

On Sun, Mar 27, 2011 at 
09:54:52AM -0400, Hendrik Boom wrote:
> On Sun, Mar 27, 2011 at 10:48:34AM +0200, Richard Levitte wrote:
> > In message <[email protected]> on Sat, 26 Mar 2011 20:49:09 -0400, Hendrik Boom <[email protected]> said:
> > 
> > hendrik> pattern "com.pooq.hendrik.write*"
> > hendrik> 
> > hendrik> doesn't work, but
> > hendrik> 
> > hendrik> pattern "com.pooq.hendrik.write.*"
> > hendrik> 
> > hendrik> does when I'm trying to sync branches
> > hendrik> 
> > hendrik> com.pooq.hendrik.write.melinda
> > 
> > Please show the exact command, that might tell us more.
> 
> OK.  Here goes:
> 
> Every time the serve command is
> 
> mtn --db ~/monotone/write.db -k [email protected] serve
> 
> and the client-side sync command is
> 
> mtn sync
> 
> And I did remember to restart the server for each run, after changing 
> read-permissions.
> 
> 
> When on the server the read-permissions reads as follows
> 
> hendrik@april:~/monotone$ cat ~/.monotone/read-permissions
> pattern "com.pooq.hendrik.write*"
> allow "[email protected]"
> allow "[email protected]"
> allow "[email protected]
> 
> 
> hendrik@april:~/monotone$ 
> 
> 
> thee output from sync is:
> 
> hendrik@notlookedfor:~/write/Melinda$ mtn sync
> mtn: connecting to mtn://topoi.pooq.com
> mtn: finding items to synchronize:
> mtn: certificates | keys | revisions
> mtn:          192 |    3 |        64
> mtn: warning: protocol error while processing peer mtn://topoi.pooq.com: 'received network error: denied 'ad968be7244234e8d653201ab1ddd33b53ffa04d' read permission for '*' excluding '' because of branch 'com.pooq.hendrik.write.melinda''
> mtn:  bytes in | bytes out | revs in
> mtn:       167 |       328 |       0
> mtn: error: processing failure while talking to peer mtn://topoi.pooq.com, disconnecting
> hendrik@notlookedfor:~/write/Melinda$ 
> 
> 
> whereas with this read-permissions file on the server
> 
> hendrik@april:~/.monotone$ cat read-permissions
> pattern "com.pooq.hendrik.write.*"
> allow "[email protected]"
> allow "[email protected]"
> allow "[email protected]"
> hendrik@april:~/.monotone$ 
> 
> sync produces:
> 
> hendrik@notlookedfor:~/write/Melinda$ mtn sync
> mtn: connecting to mtn://topoi.pooq.com
> mtn: finding items to synchronize:
> mtn: certificates | keys | revisions
> mtn:          192 |    3 |        64
> mtn:  bytes in | bytes out | revs in | revs out
> mtn:     1.1 k |     1.4 k |     0/0 |      0/0
> mtn: successful exchange with mtn://topoi.pooq.com
> mtn: note: your workspace has not been updated
> hendrik@notlookedfor:~/write/Melinda$ 
> 
> 
> 
> > 
> > hendrik> Why?  What are the rules for '*' and '.' in patterns?
> > 
> > The same as bash globs.
> 
> So "." should match a period, and "*" matches zero or more characters.
> That's what I thought.  Bash has some special rules about filenames 
> starting with a dot.  Could they be tripping me up?
> 
> -- hendrik
> 
> _______________________________________________
> Monotone-devel mailing list
> [email protected]
> http://lists.nongnu.org/mailman/listinfo/monotone-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.