Svn facing issue: COPY operations are only supported at branch level

I am using svn to work on a project that is hosted on GitHub and is facing some strange problem. Whenever I rename a package and try to commit the src directory (or any directory higher than the renamed directory), I get the 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 main branch of the GitHub repo, I check the trunk when using svn. I tried to create an identical branch and repeat the process, but still no luck. Did I miss some basic svn rules here?

+6
source share
2 answers

No, this is the limitation (current) of Github Git -SVN bridge - you still work with Git repo on the backend

+8
source

A workaround that doesn’t save history is to copy the files to the new name, then svn delete [oldname] and svn add [newname] .

This is terrible from the point of view of the general repository of sources, since no other branch will merge properly if they make their own changes to these files. But this has an advantage that actually works, and if you are the only person working with the files in question, it may be enough for your needs.

+2
source

Source: https://habr.com/ru/post/950665/


All Articles