As Ruby On Rails developer, I have to interact with some code version control tools like svn and git. When interacting with svn, I get a task to create branch from the latest version of code. Therefore I open svnbook and find svn copy command.
However, when running that command, I get this error message: svn: Cannot mix repository and working copy sources. How to solve this error?
In order to solve such error, I just have to remove backslash (\) between the command. After removing backslash , the command above will be like this one.
$ svn copy http://svn.example.com/repos/calc/trunk http://svn.example.com/repos/calc/branches/my-calc-branch -m "Creating a private branch of /calc/trunk."
At least, this way works for me. I don't give guarantee that this way will work for you too. But you can give it a try and see if it works.