How to resolve “local edit, incoming delete upon update” message

后端 未结 7 1387
自闭症患者
自闭症患者 2021-01-29 17:19

When I do a svn status ., I get this:

!     C auto-complete-config.elc
      >   local edit, incoming delete upon update
!  +  C auto-complete.el         


        
7条回答
  •  不知归路
    2021-01-29 18:00

    This issue often happens when we try to merge another branch changes from a wrong directory.

    Ex:

    Branch2\Branch1_SubDir$ svn merge -rStart:End Branch1
             ^^^^^^^^^^^^
       Merging at wrong location
    

    A conflict that gets thrown on its execution is :

    Tree conflict on 'Branch1_SubDir'
       > local missing or deleted or moved away, incoming dir edit upon merge
    

    And when you select q to quit resolution, you get status as:

     M      .
    !     C Branch1_SubDir
          >   local missing or deleted or moved away, incoming dir edit upon merge
    !     C Branch1_AnotherSubDir
          >   local missing or deleted or moved away, incoming dir edit upon merge
    

    which clearly means that the merge contains changes related to Branch1_SubDir and Branch1_AnotherSubDir, and these folders couldn't be found inside Branch1_SubDir(obviously a directory can't be inside itself).

    How to avoid this issue at first place:

    Branch2$ svn merge -rStart:End Branch1
     ^^^^
    Merging at root location
    

    The simplest fix for this issue that worked for me :

    svn revert -R .
    

提交回复
热议问题