ionik Posted February 18, 2009 Share Posted February 18, 2009 Well Hello! I'm the linux administrator over at my job here.........and I have setup a repository for a very large project we are working on. I have everything working just perfect using svnserve, added all proper authentication we need in place and created everything the way I need it done. The directory structure I have setup is fairly straight foward /REPO_LOCATION /mehype -- Contains Main REPO for checkouts /branches /stable /version# -- Contains latest stable build /dev /revision# -- Contains our nightly builds /trunk /version /version# -- Contains outdated Stable builds The repository is setup to get all files from /****/****/****/development/ Now from what i understand shouldn't the repository update the ^ development directory files once anyone sends svn commit, and commit any files changes they have made? Or is there something I must do to update the live working copy? Quote Link to comment https://forums.phpfreaks.com/topic/145752-solved-svn-administration/ Share on other sites More sharing options...
Mchl Posted February 18, 2009 Share Posted February 18, 2009 Each user has to update their copy by calling svn update as part of their work cycle Quote Link to comment https://forums.phpfreaks.com/topic/145752-solved-svn-administration/#findComment-765227 Share on other sites More sharing options...
ionik Posted February 18, 2009 Author Share Posted February 18, 2009 yes that is true, but what about updating the actual filesystem at /***/***/****/development/ once someone updates a file on the repository is there anything that needs to be done instead of just svn commit ? so when i navigation to http://development.******.com and go to the area where I made changes they will be there Quote Link to comment https://forums.phpfreaks.com/topic/145752-solved-svn-administration/#findComment-765239 Share on other sites More sharing options...
Mchl Posted February 18, 2009 Share Posted February 18, 2009 OK. You're probably talking about something, that I have no idea of. Sorry Quote Link to comment https://forums.phpfreaks.com/topic/145752-solved-svn-administration/#findComment-765245 Share on other sites More sharing options...
ionik Posted February 18, 2009 Author Share Posted February 18, 2009 I think I am on the right path to this problem......need to setup a hook to do this (which is written in C) grrrrr............ I'l post the fix for this once i find it Quote Link to comment https://forums.phpfreaks.com/topic/145752-solved-svn-administration/#findComment-765249 Share on other sites More sharing options...
Daniel0 Posted February 18, 2009 Share Posted February 18, 2009 You need to create a post-commit hook for the repo. It can be written in any language though. It just needs to have the executable bit enabled in the file system permissions (+x). It can be as simple as this: #!/bin/bash svn up /path/to/local/copy You need to ensure that the user your Subversion server is running as has write permissions to the folder where the local working copy is installed at though. Quote Link to comment https://forums.phpfreaks.com/topic/145752-solved-svn-administration/#findComment-765334 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.