[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Monotone-devel] Usher and older installations...
From: |
Richard Levitte |
Subject: |
Re: [Monotone-devel] Usher and older installations... |
Date: |
Thu, 25 Nov 2010 14:19:06 +0100 (CET) |
Actually, never mind that. A little more mind twisting and I got how
to do this:
server ".catchall."
pattern ""
local "--confdir=/etc/monotone" "--db=/var/lib/monotone/default.mtn"
"--no-standard-rcfiles" "--rcfile=/etc/monotone/hooks.lua"
"--keydir=/var/lib/monotone/keys"
It plays perfectly together with other stanzas that has different
server names and no pattern prefix :-)
Cheers,
Richard
In message <address@hidden> on Thu, 25 Nov 2010 10:49:25 +0100 (CET), Richard
Levitte <address@hidden> said:
richard> Hey,
richard>
richard> I've had a look at usher for a bit, and I was wondering how one would
richard> do a smooth transition from having a monotone server to having
richard> something that's controlled with usher, and was thinking that a way to
richard> do this is to have usher be a transparent drop in replacement.
richard>
richard> However, because usher really does require a server name (project
richard> name?), complete transparency isn't possible.
richard>
richard> So, I was wondering, would this be at all interesting?
richard>
richard> I was imagining that a way to configure this would be with a catch all
richard> stanza, like this:
richard>
richard> server ""
richard> local "--confdir=/etc/monotone" "--db=/var/lib/monotone/default.mtn"
"--no-standard-rcfiles" "--rcfile=/etc/monotone/hooks.lua"
"--keydir=/var/lib/monotone/keys"
richard>
richard> (this is, by the way, how I'd set up usher so it could replace the
richard> monotone server on Debian that's installed with the monotone-server
richard> package)
richard>
richard> It is, of course, possible to do with a stanza like this:
richard>
richard> server ""
richard> pattern "*"
richard> local "--confdir=/etc/monotone" "--db=/var/lib/monotone/default.mtn"
"--no-standard-rcfiles" "--rcfile=/etc/monotone/hooks.lua"
"--keydir=/var/lib/monotone/keys"
richard>
richard> But that only works if the users pull like this:
richard>
richard> mtn pull mtn://host?*
richard>
richard> and not with the following (perfectly valid, because there is such a
richard> branch in /var/lib/monotone/default.mtn):
richard>
richard> mtn pull mtn://host?cookie
richard>
richard> The reason for this is that the pattern in the usher configuration is
richard> truly just a pattern prefix, not a true glob... And the question is,
richard> really, how one compares one glob with another.
richard>
richard> So the question is, is there a good way to get the transparency that I
richard> want? Is it desirable, not just by me?
richard>
richard> Cheers,
richard> Richard
--
Richard Levitte address@hidden
http://richard.levitte.org/
"Life is a tremendous celebration - and I'm invited!"
-- from a friend's blog, translated from Swedish