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

Re: reopening directories in the commit editor

From: C. Michael Pilato <cmpilato_at_collab.net>
Date: 2005-03-28 19:17:48 CEST

Philip Martin <philip@codematters.co.uk> writes:

> Philip Martin <philip@codematters.co.uk> writes:
>
> > Is the following sequence valid when driving a commit editor:
> >
> > open_root
> > add_directory "zig"
> > close_directory "zig"
> > open_directory "zig"
> >
> > i.e. reopening a directory already added in the transaction. I ask
> > because it works over ra_local and ra_svn but fails over ra_dav with
> > the error
>
> I think svn_delta.h disallows it, and that I'm supposed to hold on to
> the open directory:
>
> * 1. The producer may call @c open_directory, @c add_directory,
> * @c open_file, @c add_file, or @c delete_entry at most once on
> * any given directory entry.
>
> I'm not calling any of the functions more than once, but I guess
> add_directory and open_directory combine together.

That is correct.

> Does the comment really mean I can call open_file on a directory
> entry?

Sure, so long as that directory entry is itself a file. :-)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Mar 28 19:22:01 2005

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.