[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: is there any web script to execute "svn checkout" via web without accessing via shell?

From: Tech Support <Tech-Support_at_wsas.com>
Date: 2007-03-14 16:20:11 CET

Hello,

        One way I accomplished a something similar to what you are looking
for, although it requires one time access to the shell, is as follows

Created a sub dir of my.domain.com/Project

As root, I checked out a copy to the folder once.

Then created a shell script that does an svn up in that folder.

I then added that shell script to my crontab and it keeps that folder up to
date every min for my development side, and every half hour for my
production side.

Scott

-----Original Message-----
From: thomas Armstrong [mailto:tarmstrong@gmail.com]
Sent: Wednesday, March 14, 2007 2:54 AM
To: users@subversion.tigris.org
Subject: is there any web script to execute "svn checkout" via web without
accessing via shell?

Hi.

Using SVN version 1.4.2 (r22196) on Linux, I'm trying to create a webpage to
do a "svn checkout" of a project from the SVN repository to the web
directory (both are on the same machine).

I want to execute:
svn --username john --password foo co http://svn.mydomain.com/project via
web in order to update the public project without accessing server via
shell.

I created this PHP script (perhaps most of you aren't keen on PHP):
-------
chdir('/home/www');
$command = "svn --username john --password foo co
http://svn.mydomain.com/project"; echo "<li>$command ...\n"; echo "<pre>" .
shell_exec($command) . "</pre>\n"; echo "<li> ... Executed\n";
----------
but doesn't work. It shows "Executed", but checkout wasn't made and standard
output is not shown.

Does anybody know any smart way to execute a "svn checkout" via web?
Thank you very much.

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

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Mar 14 16:21:16 2007

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.