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

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

From: Ignacio Manzano <ignacio.manzano_at_gmail.com>
Date: Thu, 1 Sep 2011 16:42:54 -0300

Hi,

I'm implementing the subversion protocol 2 in Java and I have the following
problem.

When I try to commit a new Folder I received from the standard svn client
the command ( add-dir ( 1:z 2:d0 2:d1 ( ) ) ) where z is the dir name, d0 is
the roken for the parent folder and d1 is the token for the new folder.

Based on the following directory structure.

myWc/
|__dirA

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 ?

Thanks in advance,
Ignacio
Received on 2011-09-01 21:43:27 CEST

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