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

Sym links can only be replaced in 2 steps

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.4.x
    • 1.7.0
    • unknown
    • None

    Description

      Get an error committing when replacing a sym link with a regular file.
      Workaround is to do it a commit after the delete, then add the new file and
      commit again. Seems like some sequencing of the transactions is needed.
      
      Here's what happens:
      
       ls -l route 
       route -> ../bin/busybox 
      
      svn del route 
      D         route 
      
      cp rfs/sbin/route . 
      svn stat 
      ~      route 
      
      svn add route 
      A  (bin)  route 
      svn status 
      ~      route
      
      svn commit -m "Replacing link with binary" 
      
      svn: Commit failed (details follow): 
      svn: Entry '/home/mvm/sb/fsi102/ramdisk_fsi/sbin/route' has unexpectedly changed
      special status 
      
      svn del route 
      svn: 'route' is in the way of the resource actually under version control 
      
      rm route 
      svn status 
      !      route 
      
      svn del route 
      D         route 
      svn stat 
      D      route 
      
      svn commit -m "Replacing link" 
      Deleting       sbin/route 
      
      Committed revision 452.
      

      Original issue reported by mikem388

      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: