How can I solve svn error: "E200007: Cannot mix repository and working copy sources"

svn
10,344

The command line is not seeing this as two URL's. Perhaps you have space in the URL, in which case you should encode that as %20 instead of entering a space? Here is an example I just did using same syntax as you:

$ svn cp -m "Test branch" http://oneeight.tigris.org/svn/oneeight/trunk http://oneeight.tigris.org/svn/oneeight/branches/mptest1
Committed revision 24.
Share:
10,344

Related videos on Youtube

Chris F
Author by

Chris F

I'm a professional software developer by day, dad/husband by night, and a performing musician on some weekends. I love ALL DevOps - it's not a job, it's my passion!

Updated on September 15, 2022

Comments

  • Chris F
    Chris F over 1 year

    I looked here for this issue, and none of the solutions pertain to me. The issue reported by other folks had a backslash in their command line, which I do NOT have. In my case, I'm trying to make a branch off a branch, so I did this:

    - Existing branch: https://mysvn.repo.com/project/branch
    - Created https://mysvn.repo.com/project/branch/private_branches folder in TurtoiseSVN explorer
    - Tried svn cp -m "My private branch" https://mysvn.repo.com/project/branch https://mysvn.repo.com/project/branch/private_branches/my_private_branch
    

    I get error in posts's title. Any pointers please?

  • Chris F
    Chris F over 10 years
    No space in the URLs, but thanks. In your example, where is the %20?
  • Nouman
    Nouman over 10 years
    My example was just a simple one to show that the syntax you used was correct. There is no space in my URL, so no %20
  • Rockin4Life33
    Rockin4Life33 over 5 years
    Spaces in the message surrounded by double quotes is NOT an issue by any stretch of the imagination! Removing the spaces of a commit message in SVN or GIT is not going to change a thing; except make an difficult to read commit message if it is a long and detailed message.