You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by David Weintraub <qa...@gmail.com> on 2009/09/22 16:30:40 UTC

Re: Getting merge to ignore a directory in source and destination branch for a merge (tree conflict)

You should only delete the directory in trunk, and then merge that change
back to the branch. The branch would then pick up the delete. When you
deleted both the file from the trunk and branch, and then tried the merge,
Subversion apparently picked it up as a conflict.

I know this happens when you add the same file to both the trunk and a
branch and then try to merge, you get this error. I have to keep reminding
developers not to do this: Add the file in one place, and merge that change
to the other place. I haven't tried to see what happens if you do this with
a delete.

My feeling is that it should be okay and no conflict alarm should sound
because there's no real conflict (I don't have a file in my branch and I
don't have it in my trunk.) It's a bit different if my trunk has a file
called "foo.java" Subversion is trying to merge to the branch, and there's
already a file called foo.java already there. In that case, there could be a
conflict because there could be two separate files with the same name. But,
Subversion might still be picking it up as a conflict.

You can safely ignore this *conflict*. Subversion has a way of sounding an
alarm for the smallest issues. Because of that, it takes away some of the
automation you might expect. Plus, it frightens easily spooked developers
who tell me that "Subversion isn't working". I guess its a philosophical
issue: I'd rather be alerted about non-issues rather than not being alerted
if an actual issue does exist.

When you get a conflict like this, and you know what's causing it, and
everything is okay, simply do a "svn resolved" on that file or directory to
let Subversion know you've taken care of it. Then, everything will be okay.

On Tue, Sep 22, 2009 at 11:34 AM, Paul Hammant <pa...@hammant.org> wrote:

> I've deleted (svn rm) a directory 'foo/bar' in trunk and branch and
> committed, then tried to do a merge from trunk to branch.
> The merge fails though:
>
>               svn: Attempt to add tree conflict that already exists at
> 'foo/bar'
>               svn: Error reading spooled REPORT request response`
>
> I would have hoped that the merge would ignore this directory.  This is the
> 1.6.x-R38000 branch self-built yesterday afternoon.
>
> *Is there any way to simulate 'obliterate' more effectively.*
>
> Regards,
>
> - Paul
>



-- 
David Weintraub
qazwart@gmail.com

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2398557

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: Getting merge to ignore a directory in source and destination branch for a merge (tree conflict)

Posted by Paul Hammant <pa...@hammant.org>.
Regards,

- Paul

On Sep 22, 2009, at 12:03 PM, Stein Somers wrote:

> David Weintraub wrote:
>> You can safely ignore this /conflict/.
>
> No he can't. The merge aborts so the rest of the files are not  
> merged at all.
>
> You're missing a bit of context in previous threads, but the line  
> "svn: Error
> reading spooled REPORT request response" is the clue here.

Quite correct.  Its the aborting merge that is killing us.

Right now, we're relearning C to work on tree_conflict.c to see if we  
can a) provide more debug info and b) get it to not exit early.

>
> I haven't done the simple test Paul did, but it looks like upgrading  
> to 1.6
> is not the right move yet if you're into directory renaming.

All Agile (Scrum / Extreme Programming) teams will be in that boat.

However, this is only going to be a problem for those teams if they do  
feature branches :- http://martinfowler.com/bliki/FeatureBranch.html

True trunk based dev is not likely to be a problem with 1.6.3+ IMO.

- Paul

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2398574

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: Getting merge to ignore a directory in source and destination branch for a merge (tree conflict)

Posted by Stein Somers <ss...@opnet.com>.
David Weintraub wrote:
> You can safely ignore this /conflict/.

No he can't. The merge aborts so the rest of the files are not merged at all.

You're missing a bit of context in previous threads, but the line "svn: Error 
reading spooled REPORT request response" is the clue here.

I haven't done the simple test Paul did, but it looks like upgrading to 1.6 
is not the right move yet if you're into directory renaming.

-- 
Stein

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2398570

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].