I am using svn to work on a project that is hosted on GitHub, and facing a strange issue. Whenever I rename a package and try to commit the src directory (or any directory higher than the renamed directory) I am getting a message: "svn: COPY operations are only supported at the branch level"
Example:
I have a package com.mydomain.projectname.some.package
.
When I rename it to com.mydomain.projectname.some.another.package
and try to commit, I get this message.
The project is in the master branch of the GitHub repo, I check out trunk while using svn. I tried creating an identical branch and repeating the process but still no luck. Am I missing some basic svn rules here?
No, it's limitation of (current) Github's Git-SVN bridge - you work with Git repo on backend anyway
A workaround that doesn't preserve history is to copy the files to the new name, then svn delete [oldname]
and svn add [newname]
.
This is horrible from a shared source repository perspective, as nobody else's branches will properly merge any more if they've made their own changes to those files. But it has the advantage of actually working, and if you're the only person working with the files in question, may be sufficient for your needs.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With