Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facing svn issue: COPY operations are only supported at the branch level

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?

like image 251
Jit B Avatar asked Jul 30 '13 21:07

Jit B


2 Answers

No, it's limitation of (current) Github's Git-SVN bridge - you work with Git repo on backend anyway

like image 146
Lazy Badger Avatar answered Sep 21 '22 23:09

Lazy Badger


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.

like image 21
Lucian Avatar answered Sep 20 '22 23:09

Lucian