Uploaded image for project: 'Subversion'
  1. Subversion
  2. SVN-2279

Error when merging deleted files with properties set in-between - "foo.java" is not under version control

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Duplicate
    • 1.1.x
    • 1.4.0
    • unknown
    • None
    • Windows XP

    Description

      Hi,
      
      We detected a subversion merge problem:
      
      What we did:
      1) We created a branch (at revision 616)
      2) Sometime after on trunk some subversion properties were set (eol-style=native
      set on all text files ...) as well as all files were reformatted and checked
      into trunk.
      3) We worked on our branch
      4) We deleted some files
      5) When merging trunk to our branch we got the following error message
      "foo.java" is not under version control. This file was deleted in our branch,
      but exists in main latest. Merge of the project (runtime base) form revision 616
      to head revision was not possible (we tried the option --force, but it did not
      help).
      
      The workaround:
      1) Some time ago (24.3.2005) some subversion properties were set
      (eol-style=native set on all text files ...).
      Via the show log we found that this happened in revision 875 (for our runtime
      base project).
      2) We merged now in two steps, from 616 to 874 and from 876 to head (thanks to
      Florian for this idea :-)
      3) Now we are happy again :-)
      
      This leads us to believe that there is a subversion bug when merging files that
      had their properties modified to a branch where these files have been deleted.
      
      Further info:
      svn, version 1.1.3 (r12730)
         compiled Jan 20 2005, 05:51:34
      
      Client on WindowsXP, Server on Linux with file based repository
      
      Recipe to reproduce:
      
      cd trunk\dir
      mkdir svn
      vi svn\foo.java (add some text)
      svn add svn
      svn commit svn -m "test branching"
      svn copy http://server:8080/svn/trunk/dir/svn
      http://server:8080/svn/branches/svn_bug
      Committed revision 1581.
      
      cd trunk\dir\svn
      svn propset svn:eol-style CRLF foo.java
      svn commit foo.java -m "test set properties"
      
      cd branches\svn_bug
      svn rm foo.java
      svn commit . -m "test delete"
      
      
      branches\svn_bug>svn merge -r 1581:HEAD http://server:8080/svn/trunk/dir/svn
      svn: Use --force to override this restriction
      svn: 'foo.java' is not under version control
      
      branches\svn_bug>svn merge --force -r 1581:HEAD http://server:8080/svn/trunk/dir/svn
      svn: Use --force to override this restriction
      svn: 'foo.java' is not under version control
      
      best regards,
       Florian
      

      Original issue reported by fpnfpn

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              subversion-importer Subversion Importer
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: