[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Problem with commit error

From: Markus Schaber <m.schaber_at_3s-software.com>
Date: Wed, 8 Feb 2012 14:11:14 +0000

Hi!

I've got an error with commits in working copies containing copied subtrees.

I'm using SharpSVN, which internally calls svn_client_commit_5().

The error message is: \CoDeSys_Control_RTE_V3\Plc Logic\Application\Task Configuration\MainTask' is not under version control and is not part of the commit, yet its child '\CoDeSys_Control_RTE_V3\Plc Logic\Application\Task Configuration\MainTask\svnobj' is part of the commit

The error code is SVN_ERR_ILLEGAL_TARGET.

However, the list of pathes, as seen in the debugger, clearly contains both MainTask and its child svnobj:
    [0]: "C:\\Users\\m.schaber\\AppData\\Local\\Temp\\CoDeSys.SVN\\qzzctczf.1cg.svnwc\\CoDeSys_Control_RTE_V3"
    [1]: "C:\\Users\\m.schaber\\AppData\\Local\\Temp\\CoDeSys.SVN\\qzzctczf.1cg.svnwc\\CoDeSys_Control_RTE_V3\\svnobj"
    [2]: "C:\\Users\\m.schaber\\AppData\\Local\\Temp\\CoDeSys.SVN\\qzzctczf.1cg.svnwc\\CoDeSys_Control_RTE_V3\\Plc Logic"
    [3]: "C:\\Users\\m.schaber\\AppData\\Local\\Temp\\CoDeSys.SVN\\qzzctczf.1cg.svnwc\\CoDeSys_Control_RTE_V3\\Plc Logic\\svnobj"
    [4]: "C:\\Users\\m.schaber\\AppData\\Local\\Temp\\CoDeSys.SVN\\qzzctczf.1cg.svnwc\\CoDeSys_Control_RTE_V3\\Plc Logic\\Application"
    [5]: "C:\\Users\\m.schaber\\AppData\\Local\\Temp\\CoDeSys.SVN\\qzzctczf.1cg.svnwc\\CoDeSys_Control_RTE_V3\\Plc Logic\\Application\\svnobj"
    [6]: "C:\\Users\\m.schaber\\AppData\\Local\\Temp\\CoDeSys.SVN\\qzzctczf.1cg.svnwc\\CoDeSys_Control_RTE_V3\\Plc Logic\\Application\\Library Manager"
    [7]: "C:\\Users\\m.schaber\\AppData\\Local\\Temp\\CoDeSys.SVN\\qzzctczf.1cg.svnwc\\CoDeSys_Control_RTE_V3\\Plc Logic\\Application\\Library Manager\\svnobj"
    [8]: "C:\\Users\\m.schaber\\AppData\\Local\\Temp\\CoDeSys.SVN\\qzzctczf.1cg.svnwc\\CoDeSys_Control_RTE_V3\\Plc Logic\\Application\\PLC_PRG"
    [9]: "C:\\Users\\m.schaber\\AppData\\Local\\Temp\\CoDeSys.SVN\\qzzctczf.1cg.svnwc\\CoDeSys_Control_RTE_V3\\Plc Logic\\Application\\PLC_PRG\\svnobj"
    [10]: "C:\\Users\\m.schaber\\AppData\\Local\\Temp\\CoDeSys.SVN\\qzzctczf.1cg.svnwc\\CoDeSys_Control_RTE_V3\\Plc Logic\\Application\\Task Configuration"
    [11]: "C:\\Users\\m.schaber\\AppData\\Local\\Temp\\CoDeSys.SVN\\qzzctczf.1cg.svnwc\\CoDeSys_Control_RTE_V3\\Plc Logic\\Application\\Task Configuration\\svnobj"
    [12]: "C:\\Users\\m.schaber\\AppData\\Local\\Temp\\CoDeSys.SVN\\qzzctczf.1cg.svnwc\\CoDeSys_Control_RTE_V3\\Plc Logic\\Application\\Task Configuration\\EtherCAT_Master"
    [13]: "C:\\Users\\m.schaber\\AppData\\Local\\Temp\\CoDeSys.SVN\\qzzctczf.1cg.svnwc\\CoDeSys_Control_RTE_V3\\Plc Logic\\Application\\Task Configuration\\EtherCAT_Master\\svnobj"
    [14]: "C:\\Users\\m.schaber\\AppData\\Local\\Temp\\CoDeSys.SVN\\qzzctczf.1cg.svnwc\\CoDeSys_Control_RTE_V3\\Plc Logic\\Application\\Task Configuration\\MainTask"
    [15]: "C:\\Users\\m.schaber\\AppData\\Local\\Temp\\CoDeSys.SVN\\qzzctczf.1cg.svnwc\\CoDeSys_Control_RTE_V3\\Plc Logic\\Application\\Task Configuration\\MainTask\\svnobj"
    [16]: "C:\\Users\\m.schaber\\AppData\\Local\\Temp\\CoDeSys.SVN\\qzzctczf.1cg.svnwc\\Device\\Plc Logic\\Application\\Task Configuration"
    [17]: "C:\\Users\\m.schaber\\AppData\\Local\\Temp\\CoDeSys.SVN\\qzzctczf.1cg.svnwc\\Device\\Plc Logic\\Application\\Task Configuration\\svnobj"
    [18]: "C:\\Users\\m.schaber\\AppData\\Local\\Temp\\CoDeSys.SVN\\qzzctczf.1cg.svnwc\\Device\\Plc Logic\\Application\\Task Configuration\\EtherCAT_Master"
    [19]: "C:\\Users\\m.schaber\\AppData\\Local\\Temp\\CoDeSys.SVN\\qzzctczf.1cg.svnwc\\Device\\Plc Logic\\Application\\Task Configuration\\EtherCAT_Master\\svnobj"
    [20]: "C:\\Users\\m.schaber\\AppData\\Local\\Temp\\CoDeSys.SVN\\qzzctczf.1cg.svnwc\\Device\\Plc Logic\\Application\\Task Configuration\\MainTask"
    [21]: "C:\\Users\\m.schaber\\AppData\\Local\\Temp\\CoDeSys.SVN\\qzzctczf.1cg.svnwc\\Device\\Plc Logic\\Application\\Task Configuration\\MainTask\\svnobj"

The commit depth was given as "infinity".

Examining the directory from the command line gives the following:

C:\Users\m.schaber\AppData\Local\Temp\CoDeSys.SVN\qzzctczf.1cg.svnwc - Kopie (3)>svn status
M K Device\Plc Logic\Application\Task Configuration\EtherCAT_Master\svnobj
A CoDeSys_Control_RTE_V3
A CoDeSys_Control_RTE_V3\svnobj
A CoDeSys_Control_RTE_V3\Plc Logic
A CoDeSys_Control_RTE_V3\Plc Logic\svnobj
A CoDeSys_Control_RTE_V3\Plc Logic\Application
A CoDeSys_Control_RTE_V3\Plc Logic\Application\Library Manager
A CoDeSys_Control_RTE_V3\Plc Logic\Application\Library Manager\svnobj
A CoDeSys_Control_RTE_V3\Plc Logic\Application\svnobj
A + CoDeSys_Control_RTE_V3\Plc Logic\Application\PLC_PRG
A + CoDeSys_Control_RTE_V3\Plc Logic\Application\PLC_PRG\svnobj
A + CoDeSys_Control_RTE_V3\Plc Logic\Application\Task Configuration
 M + CoDeSys_Control_RTE_V3\Plc Logic\Application\Task Configuration\svnobj
MM + CoDeSys_Control_RTE_V3\Plc Logic\Application\Task Configuration\MainTask\svnobj
MM + CoDeSys_Control_RTE_V3\Plc Logic\Application\Task Configuration\EtherCAT_Master\svnobj

C:\Users\m.schaber\AppData\Local\Temp\CoDeSys.SVN\qzzctczf.1cg.svnwc - Kopie (3)> svn commit -mm --depth=infinity CoDeSys_Control_RTE_V3 CoDeSys_Control_RTE_V3\svnobj "CoDeSys_Control_RTE_V3\Plc Logic" "CoDeSys_Control_RTE_V3\Plc Logic\svnobj" "CoDeSys_Control_RTE_V3\Plc Logic\Application" "CoDeSys_Control_RTE_V3\Plc Logic\Application\Library Manager" "CoDeSys_Control_RTE_V3\Plc Logic\Application\Library Manager\svnobj" "CoDeSys_Control_RTE_V3\Plc Logic\Application\svnobj" "CoDeSys_Control_RTE_V3\Plc Logic\Application\PLC_PRG" "CoDeSys_Control_RTE_V3\Plc Logic\Application\PLC_PRG\svnobj" "CoDeSys_Control_RTE_V3\Plc Logic\Application\Task Configuration" "CoDeSys_Control_RTE_V3\Plc Logic\Application\Task Configuration\svnobj" "CoDeSys_Control_RTE_V3\Plc Logic\Application\Task Configuration\MainTask\svnobj" "CoDeSys_Control_RTE_V3\Plc Logic\Application\Task Configuration\EtherCAT_Master\svnobj"
svn: E200009: Übertragen schlug fehl (Details folgen):
svn: E200009: »C:\Users\m.schaber\AppData\Local\Temp\CoDeSys.SVN\qzzctczf.1cg.svnwc - Kopie (3)\CoDeSys_Control_RTE_V3\Plc Logic\Application\Task Configuration\
MainTask« ist weder unter Versionskontrolle noch Teil einer Übertragung, dennoch ist sein Kind »C:\Users\m.schaber\AppData\Local\Temp\CoDeSys.SVN\qzzctczf.1cg.s
vnwc - Kopie (3)\CoDeSys_Control_RTE_V3\Plc Logic\Application\Task Configuration\MainTask\svnobj« Teil einer Übertragung

The version is SharpSVN 1.7.2 rsp. SlickSvn 1.7.2.

Strangely, when committing with TortoiseSVN, the commit works fine.

I'll try to reproduce this with a small, self-contained example, and come back to the list.

Best regards

Markus Schaber

-- 
___________________________
We software Automation.
3S-Smart Software Solutions GmbH
Markus Schaber | Developer
Memminger Str. 151 | 87439 Kempten | Germany | Tel. +49-831-54031-0 | Fax +49-831-54031-50
Email: m.schaber@3s-software.com | Web: http://www.3s-software.com 
CoDeSys internet forum: http://forum.3s-software.com
Download CoDeSys sample projects: http://www.3s-software.com/index.shtml?sample_projects
Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner | Trade register: Kempten HRB 6186 | Tax ID No.: DE 167014915 
Received on 2012-02-08 15:11:51 CET

This is an archived mail posted to the Subversion Users mailing list.