Title: System call to subversion within mason fails

Hi,

I want to invoke subversion from inside the base autohandler in my mason install.  I have searched the archives and googled it, but can't find a clear answer.  I'm a relative newbie to subversion (although I have lots of experience with cvs), and anyway subversion is working quite well on my system.  >From the command line and from a remote client it is working fine.  I have more experience with mason (a couple of years).  We have a simple home-grown cms based on mason, and it needs version control.  I have a scheme that will fit in with our work-flow, except for one point.

I can't seem to invoke subversion from within mason.  I simply want to check if the file has been modified, and if so, to update it from the directory.  I thought I could just invoke it from perl in the autohandler with `svn status --show-updates path/to/file`, get the information I need, and do the next thing.

But I find that I get the error message:
svn: Can't check path '/root/.subversion': Permission denied

So I am in the /root directory, and can't get out of it.  I've tried to cd, but that doesn't work.  The apache server, although started by root, is running under a non-root user, httpd, who owns the checked out files and who has access to the svn repository.  My component root is under httpd's home directory.  I don't understand why I am stuck in the /root directory, and not in the component root, for instance, for this simple call.  Of course, if I use perl's "system 'svn status --show-updates path/to/file' ", it fails with the same error.

If I run the command "svn status --show-updates path/to/file" on the actual command line, as either httpd or root, it works just fine.  But from within Mason, it doesn't.  Why?  What can I do?

Thanks,
Paul

Reply via email to