Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

To manage my source code I have created SVN subversion server by using command

svnadmin create /myrepos
svn import /root/MySourceCode file:///myrepos

I have created user and provided rw access to him. User can easily commit their changes in repository. How can I update my sourcecode (/root/MySourceCode) used in command svn import ? Is there any svn command to update my MySourceCode with commited code?

share|improve this question

1 Answer 1

Having imported the source into a repo, you generally need to check out the code again from the repo version. For info try svn help checkout

Having done so, you will then be able to use svn update to take changes.

share|improve this answer
    
That means to update my server code I have to act like a client? and there is no way to update my /root/MySourceCode –  alam Dec 30 '10 at 12:02
    
No - think of SVN as versioned, audited storage. Regardless of the code you put in it, the SVN repo is the master store. You checkout and update from the repo, and commit your changes back into it. Have you used any SCM system before? –  Danny Staple Dec 30 '10 at 12:57

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.