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

1.7 corrupts WC when reverting add of changelist member

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • trunk
    • 1.7.0
    • libsvn_wc
    • None

    Description

      When you revert an addition in your working copy, and the item appeared in a
      changelist, the working copy becomes corrupt and you can't ever use the filename
      again. I built a maintainer mode version from /branches/1.7.x@1155504 which
      balks (after a boring stack trace):
      
          svn: E155016: Corrupt data for '...../sandbox/wc/x'
      
      at the end of the test script below and Stefan Sperling confirmed it on trunk.
      
      #!/bin/bash
      set -eux
      rm -rf sandbox
      mkdir sandbox
      cd sandbox
      svnadmin create repo1
      url=file:///$PWD/repo1/trunk
      svn mkdir "$url" -m boot
      svn co "$url" wc
      cd wc
      # Need at least one other file, otherwise there's no problem
      echo first >first
      svn add first
      svn commit -m blah
      svn up
      # Try to add a second file, in an uncertain state of mind
      echo second >second
      svn add second
      svn cl c second
      svn revert second
      svn st -v --cl c
      svn add second
      

      Original issue reported by steinsomers

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: