gnu-arch-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnu-arch-users] Automatic archive discovery, take 1


From: Jan Hudec
Subject: Re: [Gnu-arch-users] Automatic archive discovery, take 1
Date: Tue, 16 Dec 2003 11:13:03 +0100
User-agent: Mutt/1.5.4i

On Mon, Dec 15, 2003 at 13:42:13 -0500, Colin Walters wrote:
> On Sun, 2003-12-14 at 19:18, Tom Lord wrote:
> 
> > What about a case like I expect with my archives?  When I next rotate,
> > I'll probably be replacing one archive for everything with several
> > different ones for different parts.
> 
> Well, if we allowed an arbitrary prefix to define a repository, you
> could name your various archives like:
> 
> address@hidden
> address@hidden
> address@hidden
> address@hidden
> address@hidden
> 
> Here, the repository prefix is "address@hidden".  That means that all of
> the above archives are part of the same repository.  When I do a "tla
> get address@hidden", it would work even though I hadn't
> explicitly registered it, since it matches the address@hidden prefix.
> All of these archives would be subdirectories of the same URL.
> 
> If later you wanted another repository on a different host, you could
> make its prefix say "address@hidden", containing archives like:
> 
> address@hidden
> 
> Now that archive also matches the "address@hidden" prefix, but there's a
> simple solution: disambiguate by taking the longest match of the
> repository prefixes.
> 

To me, it would sound more useful, if the repository was in a format of
.arch-params/=locations. So tla looks in locations and the archive is
not there... but a prefix is. So it opens the directory pointed by the
prefix entry (using pfs) and looks for the archive (or a longer prefix)
there... This way repository could point to different URIs and still be
simple (actualy the implementation would be simpler, since very little
new code would be needed).

Then perhaps special entry/entries (say names starting with =) could be
taken as "last resort" -- they would be tried if neither the archive nor
a prefix is found.

> _______________________________________________
> Gnu-arch-users mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/gnu-arch-users
> 
> GNU arch home page:
> http://savannah.gnu.org/projects/gnu-arch/
-------------------------------------------------------------------------------
                                                 Jan 'Bulb' Hudec 
<address@hidden>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]