arx-users
[Top][All Lists]
Advanced

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

Re: [Arx-users] ArX server requirements


From: Walter Landry
Subject: Re: [Arx-users] ArX server requirements
Date: Sat, 11 Dec 2004 23:33:00 -0500 (EST)

Kevin Smith <address@hidden> wrote:
> On Sat, 2004-12-11 at 22:21 -0500, Walter Landry wrote:
> > I thought that darcs requires a cgi script to serve over http.  If you
> > are allowed to run cgi scripts, then you can just use one that
> > generates .listing files on the fly.  Jan Hudec has already written
> > one
> 
> No, darcs does not require the cgi script. That script just adds
> friendlier human browsing capabilities. I hosted several darcs
> repositories on my fairly-cheap http-only web host. Do you know how to
> detect whether or not I was unknowingly using anonymous webdav
> (readonly) capabilities? Here is one example:
> 
>   http://qualitycode.com/repos/wxruby-swig/

I don't think so.  gnomevfs-ls doesn't work on it.  Also, Netcraft's
info on it doesn't show any webdav modules (though it does show a
bunch of others).  In contrast, the Netcraft info for superbeast does
show modDAV.

In any case, I have written another command, update-archive-listing
(arx.2.1,150).  You can use this in a hook to update listing files in
you http accessible archive.  The hook will look something like

-------------------------------------

#!/bin/bash

pre_post=$1
action=$2

if test $pre_post = "post" ; then
  if test $ARX_ARCHIVE = "http-accessible-archive" ; then
    if test $action = "make-branch" ; then
      arx update-archive-listing "$ARX_BRANCH"
    fi

    if test $action = "make-revision" ; then
      arx update-archive-listing "$ARX_REVISION"
    fi
  fi
fi

-------------------------------------

If you already have an archive, you can update the .listing for the
entire archive by just specifying the archive.  As in

  arx update-archive-listing foo/

I have tested it as much as I could, but I don't have a web server
without webdav handy.  So if you could see if that works for you, I'd
appreciate it.

Thanks,
Walter




reply via email to

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