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

Re: bug in repos_replay

From: David Glasser <glasser_at_mit.edu>
Date: 2007-01-24 21:21:10 CET

On 1/24/07, David Glasser <glasser@mit.edu> wrote:
> On 1/24/07, David Glasser <glasser@mit.edu> wrote:
> > Does anyone know of other places in the code where we need to combine
> > an svn_delta_path_driver traversal with other editor calls that might
> > be somewhat out of sequence? It looks like this is asking for an "add
> > entries to the list that svn_delta_path_driver is running through"
> > API, though that might be overengineering.
>
> Hmm, here's a possibility: svn_delta_path_driver drives
> path_driver_cb_func, which finds out what the change it is simulating
> is via the changed_paths hash in its baton.

Another possibility would be to run two passes over the list of
changed paths; the first time it just notes opportunities for calling
add_subdir and adds elements corresponding to all the added files to
the list of paths; the second time it actually runs the editor.

--dave

-- 
David Glasser | glasser_at_mit.edu | http://www.davidglasser.net/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Jan 24 21:21:28 2007

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.