You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Markus Kuhn <Ma...@cl.cam.ac.uk> on 2006/04/20 13:26:18 UTC

SVN-based web content-management system

I'm currently putting together a Web-site content management system that
uses Subversion as its backend database for storing all web pages and
providing transaction semantics.

For this application, I would like to make subversion commits from CGI
scripts that processes edited form content submitted by the user.

Subversion seems currently very much geared towards committing changes
from a working copy on the local file system. In a CGI script, it is
somewhat undesireable to use a local working copy file. Being able to
pipe the new version into svn would be much more convenient!

Is there a way to commit changes into Subversion without having to check
out a working copy first?

In other words, can I simply feed the new version of a file into
subversion via stdin and tell it on the command-line, what are

  - the filename
  - the revision number from where I started to make the modifications

?

In other words, is there a write-back equivalent of "svn cat"?

If not, is there a chance that something like this could be added to a
future version?

Thanks,

Markus

-- 
Markus Kuhn, Computer Laboratory, University of Cambridge
http://www.cl.cam.ac.uk/~mgk25/ || CB3 0FD, Great Britain


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

Re: SVN-based web content-management system

Posted by Johnathan Gifford <jg...@wernervas.com>.
Yes, you can commit changes without creating a working copy using WebDAV
with Apache and Subversion's auto versioning options.  However, you will not
be able to get previous versions through WebDAV, only head versions.  If you
need previous versions, then you'll need to come up with some work arounds
using svn export or other traditional methods.

Johnathan


On 4/20/06 8:26 AM, "Markus Kuhn" <Ma...@cl.cam.ac.uk> wrote:

> I'm currently putting together a Web-site content management system that
> uses Subversion as its backend database for storing all web pages and
> providing transaction semantics.
> 
> For this application, I would like to make subversion commits from CGI
> scripts that processes edited form content submitted by the user.
> 
> Subversion seems currently very much geared towards committing changes
> from a working copy on the local file system. In a CGI script, it is
> somewhat undesireable to use a local working copy file. Being able to
> pipe the new version into svn would be much more convenient!
> 
> Is there a way to commit changes into Subversion without having to check
> out a working copy first?
> 
> In other words, can I simply feed the new version of a file into
> subversion via stdin and tell it on the command-line, what are
> 
>   - the filename
>   - the revision number from where I started to make the modifications
> 
> ?
> 
> In other words, is there a write-back equivalent of "svn cat"?
> 
> If not, is there a chance that something like this could be added to a
> future version?
> 
> Thanks,
> 
> Markus


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