Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Single file merge in Subversion

Tags:

svn

I'm using Subversion 1.5 and have a single file in a branch that I want to merge into another branch. When I do a svn merge http://path/to/file I get an error,

Cannot replace a directory from with .

Does this just mean that Subversion can't do this?

like image 510
timdisney Avatar asked Mar 05 '09 21:03

timdisney


People also ask

What is Subversion merge?

And when you're completely finished with your branch, your entire set of branch changes can be copied back into the trunk. In Subversion terminology, the general act of replicating changes from one branch to another is called merging, and it is performed using various invocations of the svn merge subcommand.

How do I merge two svn revisions?

To merge a range of revisions, use svn merge -r start:end from to where start and end are revision IDs. This will merge all revisions starting at start+1 up to and INCLUDING end . Note: it will NOT include the first revision (ex: -r3:45 will merge 4 through 45).

How do you merge a specific commit from one branch to another svn?

Have a local checkout of the branch to which you want to merge a range of revisions from a source branch. By default, "Merge a range of revisions" is clicked. Click Test Merge to check if it merges desired revisions/files.


1 Answers

Try specifying the path to the local file as well.

For example,

svn merge -r1234:1235 svn://your_svn_url/to/file ./local_file 
like image 119
Andrew Edgecombe Avatar answered Oct 14 '22 16:10

Andrew Edgecombe