Sun 17 Aug 2003 03:14:11 AM UTC, original submission:
If you had a master archive
foo@bar--archive
http://foo.com
Then to use a mirror you would do something like
larch register mirror foo@bar--archive foo@bar--mirror
http://mirror.net
Then if you
larch get foo@bar--mirror/foo--main--1.0
it knows that foo@bar--mirror is the same as
foo@bar--archive and does
the right thing.
The output of 'larch archives' would look like
foo@bar--archive
http://foo.com
mirrors:
foo@bar--mirror
http://mirror.net
If you wanted to use the mirror in preference to the master
archive
(for updates etc.), you can specify the master as a mirror of
the mirror:
foo@bar--archive
http://mirror.net
mirrors:
foo@bar--mirror
http://foo.com
That would also complicate the internals of larch, but it
seems more
intuitive to use (at least to me).
The aliases be named by appending a qualifier to
the "master" name:
larch register-mirror foo@bar--archive foo@bar--archive--other
This serves two purposes:
1) Archive names and archive aliases look different, both
to the
user and to the code which needs to know if it's one or the
other.
2) It's always obvious what the alias refers to, both to the
user and trivially in code.
|