You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Chris Croome <ch...@webarchitects.co.uk> on 2003/08/12 09:04:15 UTC

Wishlist -> very lightweight tool for GETing files from a svn repo

Hi

I'm using subversion for managing bits of web sites and some
sets of HTML templates and the machines that these sites are hosted
on are a variety of different old Linux boxes, slackware, debian etc
and what they all have in common is the fact that I don't have root
on them and that installing a subversion client is not really a
possibility.

As a result I have to checkout stuff on another machine and then scp
/ rsync it on the hosting machine. This isn't great, if I was using
cvs I'd just update stuff directly from a cvs server.

I'd like a small, lightweight tool that can be used for GETing all
the files in a subversion repository and for updating the files.

A tool like this could just be a simple wrapper for wget that
recursively GETs all files (apart from the index.html files) and
then before getting them again compares ETags by doing HEAD requests 
to see if another GET is needed.

For example there is a little Perl wrapper for wget here that
creates a cache for ETag data:

  http://www.pipetree.com/qmacro/2002/May/24

I might get around to writing something like this myself, but if I
do it would probably be a rather horrible bash script!

Chris

-- 
Chris Croome                               <ch...@webarchitects.co.uk>
web design                             http://www.webarchitects.co.uk/ 
web content management                               http://mkdoc.com/   

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Wishlist -> very lightweight tool for GETing files from a svn repo

Posted by John Locke <ma...@freelock.com>.
Jack Repenning wrote:

> If your repository is set up for WebDAV access ("svn ls 
> htp://host/blah/blah"), you can use wget or curl to fetch individual 
> files.
>
>  Unfortunately, wget (at least) doesn't seen to work recursively, 
> because the directories keep getting redirected to index.html, so they 
> aren't directories any more, so it doesn't search them for other 
> stuff.  Anybody know how to turn that off from the client side?  I 
> couldn't spot it in the man page.

I was thinking along the same lines, but these are hard to manage. Curl 
doesn't give you a directory listing or recursive behavior--you could 
automate it by keeping a list of all the files in a separate file, and 
get it to fetch the entire list, which is probably the best option...

The problem with wget is that it follows the links in each page to get 
other pages to download--and these may not resolve correctly. But if you 
set up all of the HTML files with svn:mime-type = text/html, and 
consistently used relative links, you could probably get wget to work 
for you for static HTML and very simple PHP/active pages. If you do 
anything complex with server generated pages, I think you're back to 
managing a list of files, or using svn/another WebDav client.

Cheers,
John


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Wishlist -> very lightweight tool for GETing files from a svn repo

Posted by Jack Repenning <jr...@collab.net>.
At 8:56 AM -0700 8/12/03, John Locke wrote:
>
>You can also compile Subversion with static links, then just copy the
>executable to your other computers

If your repository is set up for WebDAV access ("svn ls 
htp://host/blah/blah"), you can use wget or curl to fetch individual 
files.

  Unfortunately, wget (at least) doesn't seen to work recursively, 
because the directories keep getting redirected to index.html, so 
they aren't directories any more, so it doesn't search them for other 
stuff.  Anybody know how to turn that off from the client side?  I 
couldn't spot it in the man page.
-- 
-==-
Jack Repenning
CollabNet, Inc.
8000 Marina Boulevard, Suite 600
Brisbane, California 94005
o: 650.228.2562
c: 408.835-8090

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Wishlist -> very lightweight tool for GETing files from a svn repo

Posted by John Locke <ma...@freelock.com>.
On Tue, 2003-08-12 at 04:55, mark benedetto king wrote:
> On Tue, Aug 12, 2003 at 10:04:15AM +0100, Chris Croome wrote:
> > Hi
> > 
> > I'm using subversion for managing bits of web sites and some
> > sets of HTML templates and the machines that these sites are hosted
> > on are a variety of different old Linux boxes, slackware, debian etc
> > and what they all have in common is the fact that I don't have root
> > on them and that installing a subversion client is not really a
> > possibility.
> > 
> 
> You don't need root to install subversion.  Just pass the appropriate
> arguments to the configure script.

You can also compile Subversion with static links, then just copy the
executable to your other computers (of the same basic type--should work
in most Linux x86, for example--you'll probably have to compile a
different version for BSD or Win32). Drop it in your $HOME/bin, and you
should be able to run it from the command line (check your $PATH if
not).

I've done this for several machines. Works great. I forget the exact
syntax you pass when compiling--take a look at the ./configure options.

Cheers,
John



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Wishlist -> very lightweight tool for GETing files from a svn repo

Posted by mark benedetto king <mb...@lowlatency.com>.
On Tue, Aug 12, 2003 at 10:04:15AM +0100, Chris Croome wrote:
> Hi
> 
> I'm using subversion for managing bits of web sites and some
> sets of HTML templates and the machines that these sites are hosted
> on are a variety of different old Linux boxes, slackware, debian etc
> and what they all have in common is the fact that I don't have root
> on them and that installing a subversion client is not really a
> possibility.
> 

You don't need root to install subversion.  Just pass the appropriate
arguments to the configure script.


--ben

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org