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

Merge - File is both added 'A' and has a conflict 'C' - merge reports 'A'

From: Mike Mills <mike_at_rootbin.com>
Date: 2003-05-08 02:50:42 CEST

It is possible for a file to have both a status of 'A' Added as well as 'C'
Conflicted. However, this dual status is not reported when merging. It
seems that the A is reported by the merge command. Is this the expected
behavior?

Steps to reproduce:

Lets say I have a project with a main trunk t a branch b and a common
ancestor v. Now the following occurs:

1) Add a file c to t with contents:
this is c in main

2) Commit t

3) Add a file c to b with contents:
this is c in branch

4) Commit b

Now i go to do a merge :

cd t

svn merge v b .

And I get:
A c

BUT the file also has conflicts. So a "cat" reveals:

$ cat c
<<<<<<< .working
this is c in main
=======
this is c in branch
>>>>>>> .yours

and svn status shows a conflict:

$ svn status c
C c

So, it seems that in order to get a proper account of the results of a
merge one must do the merge and then double check the result via svn
status. Is this the appropriate work flow when merging?

- Mike

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu May 8 02:47:39 2003

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

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