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

1.7 corrupts WC when reverting add of changelist member

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: trunk
    • Fix Version/s: 1.7.0
    • Component/s: libsvn_wc
    • Labels:
      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

            • Assignee:
              Unassigned
              Reporter:
              subversion-importer Subversion Importer

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment