[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Monotone-devel] Confusing terminology between usher and monotone an
From: |
Ludovic Brenta |
Subject: |
Re: [Monotone-devel] Confusing terminology between usher and monotone and proposed change |
Date: |
Tue, 10 May 2011 09:59:54 +0200 |
User-agent: |
RoundCube Webmail/0.4-beta |
On Tue, 10 May 2011 09:09:15 +0200 (CEST), Richard Levitte
> The word "path" has been expanded, especially if we speak in URI
> terms, to something of a structured notation to reach a specific
> resource within a specific realm. That's exactly the way PATH is
> used in mtn://HOST/PATH?PATTERN .
>
> hendrik> This still leaves room for confusion, since (unless I'm
> hendrik> grossly confused) it's not the file name of the data base
> hendrik> that's wanted here.
>
> No, it's not the file name of the database, but it's a way to reach
> it.
>
> My main issue, though, is that things are expressed differently in the
> monotone speak and in usher speak, that's where we have a real
> possibility for confusion. How would you have it?
How about replacing "server" with "URI"? That makes it explicit that
the string is what the client will use to connect to the server.
I also do not like the "local" moniker; it does not reflect what the
thing is. How about:
URI "mtn://HOST/newpub"
server-options "--confdir" "/home/levitte/usher.projects/newpub" "-d"
"/home/levitte/usher.projects/newpub/database.mtn" "--no-standard-rcfiles"
"--rcfile" "/home/levitte/usher.projects/newpub/monotonerc" "--timestamps"
"--ticker=dot"
?
The presence of the hostname in the URI makes it possible for usher to
support virtual hosts, or even to redirect http:// queries to a viewmtn
server :)
There could be additional variables like:
server "/usr/bin/mtn"
directory "/home/levitte/usher.projects/newpub"
such that the server runs in a chroot in the specified directory, with
dropped privileges such that it cannot read or write outside that
directory. The "server" variable could allow the sysadmin to run
different versions of monotone (e.g. a stable production version and
a development version) under the umbrella of a single usher, migrating
servers to a new version one by one as the needs arise.
--
Ludovic Brenta.