[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: Ignacio Manzano <ignacio.manzano_at_gmail.com>
Date: Thu, 1 Sep 2011 17:22:11 -0300

Thanks!
I took a look of all the msg and based on your explanation the first message
has the directory for the root of the operation

( 2 ( edit-pipeline svndiff1 absent-entries depth mergeinfo log-revprops )
24:svn://localhost:8000/x/y 20:SVN/1.6.12 (r955767) ( ) )

Thanks a lot!
Regards
Ignacio

On Thu, Sep 1, 2011 at 5:16 PM, C. Michael Pilato <cmpilato_at_collab.net>wrote:

> 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:22:42 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.