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

svn revert . in a directory scheduled for addition breaks working copy

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • all
    • 0.30
    • libsvn_wc
    • None

    Description

      A simple reproduction recipe - assume working copy:
      
      naked@hadaka:~/projects$ mkdir foo
      naked@hadaka:~/projects$ svn add foo
      A         foo
      naked@hadaka:~/projects$ cd foo
      naked@hadaka:~/projects/foo$ svn revert .
      Reverted .
      naked@hadaka:~/projects/foo$ cd ..
      naked@hadaka:~/projects$ svn up
      svn: No such file or directory
      svn: svn_io_file_open: can't open `./foo/.svn/entries'
      
      Discussion on IRC with cmpilato and saurik on the matter suggested
      that maybe 'svn revert .' should never touch the actual state of the
      current directory, but only children and properties.
      

      Original issue reported by hadaka

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: