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

Misleading error from "svn copy" if parent path of the target does not exist

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.9.4
    • None
    • None
    • None
    • CentOS 6.7

    Description

      The issue is when create copy/branch/tag from a local working copy path using "svn copy", if the parent path of the copying target does not exist, the "svn copy" command fails with a misleading error message saying that the copy source (working copy directory) "is out of date" while that is not the case.

      The reproduce case (both client and server at 1.9.4):

      # svn info
      Path: .
      Working Copy Root Path: /root/repo05
      URL: http://192.168.56.202:8081/svn/repo05/trunk
      Relative URL: ^/trunk
      Repository Root: http://192.168.56.202:8081/svn/repo05
      Repository UUID: deadbeef-b0b0-ca1f-f0f0-123456789abc
      Revision: 1
      Node Kind: directory
      Schedule: normal
      Last Changed Author: user01
      Last Changed Rev: 1
      Last Changed Date: 2016-07-29 15:37:02 +0800 (Fri, 29 Jul 2016)
      # svn ls ^/branches
      # svn cp -mm . ^/branches/test/br1
      Adding copy of        .
      svn: E155011: Commit failed (details follow):
      svn: E155011: Directory '/root/repo05/trunk' is out of date
      svn: E160013: File not found: transaction '1-2', path '/branches/test/br1'
      # svn mkdir -mm ^/branches/test
      Committing transaction...
      Committed revision 2.
      # svn cp -mm . ^/branches/test/br1
      Adding copy of        .
      Committing transaction...
      Committed revision 3.
      

      The error message certainly confuses the issue.

      Attachments

        Activity

          People

            Unassigned Unassigned
            dbrobinson Douglas Robinson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: