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

RE: Question about merge conflicts

From: Méresse Christophe <christophe.meresse_at_nagra.com>
Date: 2007-03-12 17:28:42 CET

 

________________________________

        From: Strahovsky, Ido [mailto:ido.strahovsky@intel.com]
        Sent: lundi, 12. mars 2007 09:53
        To: users@subversion.tigris.org
        Cc: Davidovits, Golan
        Subject: Question about merge conflicts
        
        
        Hi,
        I ran the following scenario, and wonder if the result is the expected behavior or not:

        * 2 developer works in 2 different branches under trunk.
        * User A change file kuku.txt in branch dev_A and commit
        * User B move the file kuku.txt to another location in dev_B and commit
        * User A merge is change to trunk and commit
        * User B perform rebase (merge from trunk to dev_B)

         
        The result: the new version of user B is deleted because the move of User A delete the file from its original location.
        The old version of kuku.txt is now in the new location (due to the move).
         

I guess there is a mismatch in your case. User A did not move the file. I suppose your case should be:

* 2 developer works in 2 different branches under trunk.
        
* User A move the file kuku.txt to another location in dev_B and commit
* User B change file kuku.txt in branch dev_A and commit
* User A merge is change to trunk and commit
* User B perform rebase (merge from trunk to dev_B)

         
        User B lost his new version without notifying about it.
        Is there any elegant solution for such cases ?
         

I don't think that there is a better solution. The problem comes from the "rename" or "move" solution used by SVN (delete + copy instead of a real move history)
 
Regards
Christophe

         

        JJJ,

        Ido Strahovsky,

        iNet: 84651512

        office: +972-4-8651512

        cell: +972-54-7885750

         
Received on Mon Mar 12 17:29:31 2007

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.