First, I would like to clarify a quick question I have, am I right in thinking that files in svn repo don't actually exist in the heirarchical structure you see when you check them out?
I have tried to use svn export ~/svn/project1 ~/public_html/project1 but it didn't work.
What I actually want is to have the export command automatically executed when I do a commit so that I can see my changes immediately in a web browser.
Correct... they actually exist in a DB of sorts in the repository directory. However you can invoke svn export on a working copy or a respoitory url. So lets say your repo is on the system at
/svn/myprojectand you have a working copy oftrunkat~/myprojectthen either of the folloring commabds will export properly:svn export --force ~/myproject ~/public_htmlsvn export --force file:///svn/myproject/trunk ~/public_htmlofcourse you can subsitute the
svn,http, orsvn+sshfor thefileprotocol depending on how your access is set up.