Re: branch patterns

Hendrik Boom <[email protected]>
Newsgroups gmane.comp.version-control.monotone.devel
Message-ID <[email protected]>
On Sun, Mar 27, 2011 at 06:08:50PM +0200, Richard Levitte wrote:
> In message <[email protected]> on Sun, 27 Mar 2011 09:54:52 -0400, Hendrik Boom <[email protected]> said:
> 
> hendrik> OK.  Here goes:
> hendrik> 
> hendrik> Every time the serve command is
> hendrik> 
> hendrik> mtn --db ~/monotone/write.db -k [email protected] serve
> hendrik> 
> hendrik> and the client-side sync command is
> hendrik> 
> hendrik> mtn sync
> hendrik> 
> hendrik> And I did remember to restart the server for each run, after changing 
> hendrik> read-permissions.
> hendrik> 
> hendrik> 
> hendrik> When on the server the read-permissions reads as follows
> hendrik> 
> hendrik> hendrik@april:~/monotone$ cat ~/.monotone/read-permissions
> hendrik> pattern "com.pooq.hendrik.write*"
> hendrik> allow "[email protected]"
> hendrik> allow "[email protected]"
> hendrik> allow "[email protected]
> hendrik> 
> hendrik> 
> hendrik> hendrik@april:~/monotone$ 
> hendrik> 
> hendrik> 
> hendrik> thee output from sync is:
> hendrik> 
> hendrik> hendrik@notlookedfor:~/write/Melinda$ mtn sync
> hendrik> mtn: connecting to mtn://topoi.pooq.com
> hendrik> mtn: finding items to synchronize:
> hendrik> mtn: certificates | keys | revisions
> hendrik> mtn:          192 |    3 |        64
> hendrik> 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''
> hendrik> mtn:  bytes in | bytes out | revs in
> hendrik> mtn:       167 |       328 |       0
> hendrik> mtn: error: processing failure while talking to peer mtn://topoi.pooq.com, disconnecting
> hendrik> hendrik@notlookedfor:~/write/Melinda$ 
> hendrik> 
> hendrik> 
> hendrik> whereas with this read-permissions file on the server
> hendrik> 
> hendrik> hendrik@april:~/.monotone$ cat read-permissions
> hendrik> pattern "com.pooq.hendrik.write.*"
> hendrik> allow "[email protected]"
> hendrik> allow "[email protected]"
> hendrik> allow "[email protected]"
> hendrik> hendrik@april:~/.monotone$ 
> hendrik> 
> hendrik> sync produces:
> hendrik> 
> hendrik> hendrik@notlookedfor:~/write/Melinda$ mtn sync
> hendrik> mtn: connecting to mtn://topoi.pooq.com
> hendrik> mtn: finding items to synchronize:
> hendrik> mtn: certificates | keys | revisions
> hendrik> mtn:          192 |    3 |        64
> hendrik> mtn:  bytes in | bytes out | revs in | revs out
> hendrik> mtn:     1.1 k |     1.4 k |     0/0 |      0/0
> hendrik> mtn: successful exchange with mtn://topoi.pooq.com
> hendrik> mtn: note: your workspace has not been updated
> hendrik> hendrik@notlookedfor:~/write/Melinda$ 
> 
> 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.  But when I do it in the same workspace I reported on before, 
there's a whole lot of stuff.  Is this normal, or is there a lot of 
historical cruft that might be getting in the way?

hendrik@notlookedfor:~/write/Melinda$ ls
Melinda  _MTN
hendrik@notlookedfor:~/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://[email protected]/~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://[email protected]/~hendrik/monotone/write.db *
hendrik@notlookedfor:~/write/Melinda$ 

> 
> hendrik> > hendrik> Why?  What are the rules for '*' and '.' in patterns?
> hendrik> > 
> hendrik> > The same as bash globs.
> hendrik> 
> hendrik> So "." should match a period, and "*" matches zero or more characters.
> hendrik> That's what I thought.  Bash has some special rules about filenames 
> hendrik> starting with a dot.  Could they be tripping me up?
> 
> The special rule about file names starting with a dot has nothing to
> do with globbing per se...  or bash, for that matter.  It's 'ls' that
> filters them away (unless you say otherwise, with '-a').
> 
> Cheers,
> Richard
> 
> -- 
> Richard Levitte                         [email protected]
>                                         http://richard.levitte.org/
> 
> "Life is a tremendous celebration - and I'm invited!"
> -- from a friend's blog, translated from Swedish
> 
> _______________________________________________
> 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.