Douglas Robinson created SVN-4646: ------------------------------------- Summary: Misleading error from "svn copy" if parent path of the target does not exist Key: SVN-4646 URL: https://issues.apache.org/jira/browse/SVN-4646 Project: Subversion Issue Type: Bug Affects Versions: 1.9.4 Environment: CentOS 6.7 Reporter: Douglas Robinson
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)+: {noformat} # 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. {noformat} The error message certainly confuses the issue. -- This message was sent by Atlassian JIRA (v6.3.4#6332)