SVN error when trying to merge from a branch
Asked Answered
O

2

22

I'm trying to merge changes from a branch to the trunk, for a single file and a single revision.

I'm using VisualSVN as the front-end.

So I right-click the file, Visual SVN -> Merge, then select ‘Merge a range of revisions’, then enter the revision number (from the log) and hit Next. Then I click ‘Test Merge’

What I get is the following error:

'http://subversion.tigris.org/xmlns/dav/md5-checksum' was not present on the resource.

Any ideas why this is happening?

Ostend answered 14/8, 2009 at 3:4 Comment(0)
O
36

Yay! A colleague figured out the problem.

Even though I was right-clicking on the file and clicking 'Merge', the 'merge from' URL was set to the top-level folder of the branch.

http://server.svn/Project/branches/1.0.2

It should have specified the full path and filename of the file

http://server.svn/Project/branches/1.0.2/folder/blah.cs

Now I'm all the wiser. :)

Ostend answered 14/8, 2009 at 4:4 Comment(4)
According to the "merging best practices" in the svn book, merges should only be performed on the root of the branch: svnbook.red-bean.com/en/1.5/…Ideally
That would explain why Tortoise defaults to the root path. However in this particular situation, I had to apply the merge to specific files.Ostend
Not all situations match "best practice" (although its a good point). Thanks for the answer - saved my day.Lymn
Awesome! i should've searched SO two hours ago :-)Cloison
M
1

I got the same error message, however, it turned out that an empty file (literally 0 (zero) bytes) was located in the repository. Apparently something SVN doesn't know how to handle. After removing this file, everything did work again.

Made answered 13/1, 2012 at 9:53 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.