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

multiple replace_root calls? (was: Re: "path" during a commit walk)

From: Greg Stein <gstein_at_lyra.org>
Date: 2000-12-30 02:04:02 CET

On Fri, Dec 29, 2000 at 04:19:33PM -0600, Karl Fogel wrote:
> Greg Stein <gstein@lyra.org> writes:
> > > Is that really allowed in our contract?
> >
> > replace_root/close_directory pairs appear to be legal.
>
> No (this may be ill-documented, though).
>
> There is one replace_root() call per editor, paired to one
> close_edit() call.

The result from replace_root() is a dir_baton, which is matched with a
close_directory.

When an editor is "created", the edit_baton is returned, which is then
passed to close_edit.

So... the API would strictly seem to allow multiple replace_root calls, each
followed by a close_directory. When everything is completed, then the
close_edit is called.

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/
Received on Sat Oct 21 14:36:18 2006

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