[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: Tortoise SVN merge bug?

From: Bob Archer <Bob.Archer_at_amsi.com>
Date: Mon, 1 Feb 2010 19:21:36 -0500

> I'm afraid it does but I'm not counting out user error quite yet. Yes I
> am merging to my working copy of the trunk. I created a branch from my
> trunk, and checked it out. The first revision of the branch is 3221.
> Then I added a text file named "my test.txt" and put the word "test" in
> the file. I then select merge as follows:

I assume before you do the merge you have commited your mytest.txt files change on branch?

> I right click on my trunk check out and select "merge a range of
> revisions" and enter the URL to my branch. Next I don't enter revisions
> any and run the "Test Merge". Then I get the following output:
>
> Merging r2 through r1761: [path]
> [long list of files updated, merged, conflicted]
> Merging r1798 through r3052: [path]
> [long list of files updated, merged, conflicted]
> Merging r3053 through r3220: [path]
> [long list of files updated, merged, conflicted]
> Merging r3221 through r3223: [path]
> I get is a single "Added" line before it completes.
> Added: [path]\New File.txt
> Completed: [path]
>
> I close the Merge test and click on back then select "Show Log" and select
> the range of revisions. Click Next and run "Test Merge" again,
>
> Merging r3221 through r3223: [path]
> all I get is a single "Added" line before it completes.
> Added: [path]\New File.txt
> Completed: [path]
>
> So I'm concluding merging a branch does not merge back to the "parent"
> from which it was branched, but from the parent of all parents from which
> our trunk originated 5 years ago. So "To merge all revisions, leave the
> box empty." means merge this branch all the way back to the first checkin
> that ever occurred in the repository?

Ok, so you created this branch well before you started using svn 1.5? This would explain why it works when you specify the revisions. What you need to do is first do a merge and specify the revisions (from:to) for everything that you have manually merged and do a "record only" merge? From your logs it looks like you need to do a record only merge from r2:r3221. Then commit it. That will tell svn that r2-r3221 of trunk is already in trunk. (I assume this is the case.)

> Our repository has four root entries:
>
> cm/[releases]
> dev/[older trunks]
> ptr/[issue track number or each PTR]
> trunk
>
> I am merging ptr branches created off of the trunk. But the merge merges
> the branck back to the original ptr branch that is revision 2 under which
> I had created my branch folder.
>
> Now I'm guessing I have lost you here, but if you do see my mistake please
> set me straight.
>
> Jeff
Received on 2010-02-02 01:21:38 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.