[darcs-users] suggestion: each push should identify its target repo internally

Zack Brown zbrown at tumblerings.org
Thu Aug 14 00:16:07 UTC 2003


On Wed, Aug 13, 2003 at 09:08:26AM -0700, Aaron Denney wrote:
> On Wed, Aug 13, 2003 at 07:46:05AM -0700, Zack Brown wrote:
> > there are two possibilities. A URL or a path. If it's a URL, there's no need
> > for any other information. Just parse the apache config files, and you're
> > done. they will point you to the proper directory.
> 
> I'd don't like the tight tie to Apache this forces.

This could be solved by putting hooks into darcs, to allow supporting
any web server. Then someone can add apache support, zeus support, etc.,
as they see fit.

> 
> It's also not completely trivial to find the Apache config...
> Is it in /etc/, /usr/local/etc/, /usr/local/apache-version1?  What if
> multiple versions are installed?

there must be some way to handle it. Using the apache config files looks
clean, because then there is just one place where the directory and the
URL are connected. If you do it anywhere else it's just redundant.

One way to handle it would be to put the relevant apache config in a
file in _darcs, and just use an "include" statement in the apache
config. That way regardless of which apache is running, if it includes
this file, it'll have correct information.

Another way would be to just restrict darcs to using only config files
in /etc/apache (or the equivalent for other web servers).

There are various ways of dealing with the situation. But I think the
basic idea is sound.

Be well,
Zack

> 
> -- 
> Aaron Denney
> -><-
> 
> _______________________________________________
> darcs-users mailing list
> darcs-users at abridgegame.org
> http://www.abridgegame.org/mailman/listinfo/darcs-users

-- 
Zack Brown




More information about the darcs-users mailing list