Episodes
Thursday Oct 11, 2007
set up a project in subversion
Thursday Oct 11, 2007
Thursday Oct 11, 2007
Assume the subversion has already been installed on your system. 1. Create Subversion Home folder #mkdir -p /home/svn 2. Create a generic repository format #mkdir -p /home/svn/default/trunk # mkdir /home/svn/default/branches # mkdir /home/svn/default/tags 3. Setup Blanket Access: If you wish to enable htaccess style password login to the subversion repository then use this system. This is the basic access control system, which can be extended to enable per directory access control as well. #mkdir /home/svn/access #touch /home/svn/access/users #htpasswd -mb /home/svn/access/users myname mypw 4 . Extending the Blanket Access control to enable Per-Directory Access control # touch /home/svn/access/control example content of control file: [/] admin = rw manager = r [/bigproject] manager = rw commiter = r [/bigproject/trunk] commiter = rw client = r [/bigproject/branches] client = r [/bigproject/trunk/manager_notes] client = commiter = 5. Build a project repository #mkdir /home/svn/repos # svnadmin create /home/svn/repos/myproject #svn import /home/svn/default file:///home/svn/repos/myproject -m "Initial Import" 6. check out the project to workspace cd ~/myworkspace svn checkout file:// home/svn/repos/myproject/trunk myproject 7. add files to myproject and do commit svn commit -m "import initial code " svn update
Comments (0)
To leave or reply to comments, please download free Podbean or
No Comments
To leave or reply to comments,
please download free Podbean App.