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

Re: Directory with tree conflict lies about merge result

From: Andreas Stieger <andreas.stieger_at_gmx.de>
Date: Wed, 6 Aug 2014 18:14:45 +0100


I recommend the following:
In a clean working copy of the feature branch...
svn mv host host_branch
Then perform the merge, now without tree conflict.
svn mv host_branch/test host/
svn rm host_branch


> On 6 Aug 2014, at 18:04, Benjamin Fritz <fritzophrenic_at_gmail.com> wrote:
> I accidentally created a "host" directory both on a feature branch,
> and on trunk. On trunk, this directory contains a "lib" subdirectory
> containing a project to build a Windows version of the library I'm
> developing. On the feature branch, this directory instead contains a
> "test" directory containing a unit test of the feature.
> I'm trying to merge TO my feature branch, the trunk revision that
> added the Windows project of the library, so that the final result is
> my feature branch has a "host" directory with two subdirectories:
> "test" and "lib".
> The result of a merge command *looks* like this is happening:
> C:\Project_Files\FEATURE_WC>svn merge -c 6891 http://example.com/SVN/lib/trunk
> --- Merging r6891 into '.':
> U externals
> A lib\win32
> A lib\win32\lib.lib
> A lib\win32\lib.d.lib
> C host
> A host\lib\lib.sln
> A host\lib\proj\lib.vcxproj
> A host\lib\proj\lib.vcxproj.filters
> A host\lib\proj\lib.vcxproj.user
> A host\lib\proj
> A host\lib
> --- Recording mergeinfo for merge of r6891 into '.':
> U .
> Conflict discovered when trying to add 'host'.
> An object of the same name already exists.
> Select: (mf) my version, (tf) their version, (p) postpone,
> (q) quit resolution, (h) help:
> No matter what answer I give to the question ("mf", "tf", "p", or "q")
> when I check the "host" directory, no "lib" directory was created and
> neither it nor any of the added files under "lib" actually got added
> to my working copy.
> Why does SVN report adding those files as part of the merge, if the
> files were not actually added?
> How can I get SVN to actually add these files? Do I need to manually
> "svn copy" http://example.com/SVN/lib/trunk/host/lib into my working
> copy?
Received on 2014-08-06 19:15:19 CEST

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.