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

'svn switch' can delete working copy

    XMLWordPrintableJSON

Details

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

    Description

      Philip Martin says:
      
      Yikes!  Something is seriously wrong.  This script
      
      REPO=file://${PWD}/repo
      svnadmin create repo
      svn mkdir  $REPO/trunk $REPO/branch
      svn cp     $REPO/trunk $REPO/branch/b1
      svn mkdir  $REPO/trunk/foo
      svn co     $REPO/trunk wc
      ls wc
      svn switch $REPO/branch/b1 wc
      
      gives this error
      
      ../svn/subversion/libsvn_subr/io.c:682: (apr_err=2, src_err=0)
      svn: No such file or directory
      svn: svn_io_set_file_read_write: failed to set file 'wc/.svn/log'
      read-write
      
      and
      
      $ ls wc
      ls: wc: No such file or directory
      
      it's deleted my working copy.
      
      Please raise an issue.
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            kfogel Karl Fogel
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: