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

Re: Question Implementing Subversion protocol 2 and add-dir command in commit operation

From: C. Michael Pilato <cmpilato_at_collab.net>
Date: Thu, 01 Sep 2011 16:16:55 -0400

On 09/01/2011 03:42 PM, Ignacio Manzano wrote:
> I created a new dir called 'z' under the folder 'dirA'. When I execute the
> command svn ci -m "msg" from a standard svn client I receive the following
> operations from the client
>
> ( open-root ( ( ) 2:d0 ) )
> ( add-dir ( 1:z 2:d0 2:d1 ( ) ) )
> ( close-dir ( 2:d1 ) )
> ( close-dir ( 2:d0 ) )
> ( close-edit ( ) )
>
> My problem is the add-dir has as parent the token d0 and d0 is the root, so
> the new folder is add in the root folder instead of 'dirA'. How can I figure
> out the parent if the command svn client doesn't send the open-dir for the
> parent root folders of the new folder ?

"open-root" doesn't mean "open the root of the repository". It means, "open
the root directory of the operation". You'll need to consult additional
sources of information (for example, the URL which is the target of the
operation) to determine precisely which directory is the root of the operation.

-- 
C. Michael Pilato <cmpilato_at_collab.net>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand
Received on 2011-09-01 22:17:27 CEST

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.