Lines Matching defs:state

77   /* Assert that we are in a stable state. */
108 /* Assert that we are in a stable state. */
156 svn_delta_path_driver_state_t *state;
175 SVN_ERR(svn_delta_path_driver_start(&state,
192 SVN_ERR(svn_delta_path_driver_step(state, relpath, iterpool));
198 SVN_ERR(svn_delta_path_driver_finish(state, pool));
222 svn_delta_path_driver_state_t *state = apr_pcalloc(pool, sizeof(*state));
224 state->editor = editor;
225 state->edit_baton = edit_baton;
226 state->callback_func = callback_func;
227 state->callback_baton = callback_baton;
228 state->db_stack = apr_array_make(pool, 4, sizeof(void *));
229 state->last_path = NULL;
230 state->pool = pool;
232 *state_p = state;
237 svn_delta_path_driver_step(svn_delta_path_driver_state_t *state,
253 if (!state->last_path && !svn_path_is_empty(relpath))
255 subpool = svn_pool_create(state->pool);
256 SVN_ERR(state->editor->open_root(state->edit_baton, SVN_INVALID_REVNUM,
258 push_dir_stack_item(state->db_stack, db, subpool);
264 if (state->last_path)
265 common = svn_relpath_get_longest_ancestor(state->last_path, relpath,
274 if ((state->last_path) && (strlen(state->last_path) > common_len))
276 const char *rel = state->last_path + (common_len ? (common_len + 1) : 0);
280 SVN_ERR(pop_stack(state->db_stack, state->editor));
305 SVN_ERR(open_dir(state->db_stack, state->editor, rel, state->pool));
318 if (state->db_stack->nelts)
320 item = APR_ARRAY_IDX(state->db_stack, state->db_stack->nelts - 1, void *);
326 subpool = svn_pool_create(state->pool);
327 SVN_ERR(state->callback_func(&db,
328 state->editor, state->edit_baton, parent_db,
329 state->callback_baton,
333 push_dir_stack_item(state->db_stack, db, subpool);
340 /*** Step E - Save our state for the next iteration. If our
344 state->last_path = apr_pstrdup(state->pool, db ? relpath : pdir);
350 svn_delta_path_driver_finish(svn_delta_path_driver_state_t *state,
354 while (state->db_stack->nelts)
356 SVN_ERR(pop_stack(state->db_stack, state->editor));