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

[PATCH] ra_svn move/copy bug

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: all
    • Fix Version/s: unscheduled
    • Component/s: libsvn_ra_svn
    • Labels:
      None

      Description

      Most move and copy operations work, but at least one
      fails: moving (or copying) a file or directory to the root of the
      repository.  Reproduction recipe and transcript below.  This
      demonstrates the bug with mv, but it also happens with cp.  The
      same thing happens if 'subdir' is a file instead of a directory.
      
      svnadmin create repo
      svn mkdir -m '' svn://localhost$PWD/repo/dir
      svn mkdir -m '' svn://localhost$PWD/repo/dir/subdir
      svn mv -m '' svn://localhost$PWD/repo/dir/subdir/
      svn://localhost$PWD/repo/dir/
      
      0 ra_svntests% svnadmin create repo
      0 ra_svntests% svn mkdir -m '' svn://localhost$PWD/repo/dir
      
      Committed revision 1.
      0 ra_svntests% svn mkdir -m '' svn://localhost$PWD/repo/dir/subdir
      
      Committed revision 2.
      0 ra_svntests% svn mv -m '' svn://localhost$PWD/repo/dir/subdir/
      svn://localhos
      t$PWD/repo/dir/
      assertion "opt > 0 || cstr" failed: file
      "/u/epg/work/svn/trunk/subversion/libs
      vn_ra_svn/marshal.c", line 315, function "vwrite_tuple"
      zsh: abort (core dumped)  svn mv -m ''
      svn://localhost$PWD/repo/dir/subdir/
      

      Original issue reported by epg

        Attachments

        1. 1_t.txt
          0.5 kB
          Subversion Importer
        2. 2_t.txt
          0.7 kB
          Subversion Importer
        3. 3_1084.diff
          3 kB
          Subversion Importer

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: