Lines Matching refs:sb

91 print_conflict_stats(struct status_baton *sb, apr_pool_t *pool)
93 if (sb->text_conflicts > 0 || sb->prop_conflicts > 0 ||
94 sb->tree_conflicts > 0)
97 if (sb->text_conflicts > 0)
99 (pool, _(" Text conflicts: %u\n"), sb->text_conflicts));
101 if (sb->prop_conflicts > 0)
103 (pool, _(" Property conflicts: %u\n"), sb->prop_conflicts));
105 if (sb->tree_conflicts > 0)
107 (pool, _(" Tree conflicts: %u\n"), sb->tree_conflicts));
117 svn_stringbuf_t *sb = svn_stringbuf_create_empty(pool);
119 svn_xml_make_open_tag(&sb, pool, svn_xml_normal, "target",
122 return svn_cl__error_checked_fputs(sb->data, stdout);
133 svn_stringbuf_t *sb = svn_stringbuf_create_empty(pool);
139 svn_xml_make_open_tag(&sb, pool, svn_xml_self_closing, "against",
143 svn_xml_make_close_tag(&sb, pool, "target");
145 return svn_cl__error_checked_fputs(sb->data, stdout);
157 struct status_baton *sb = baton;
159 if (sb->xml_mode)
160 return svn_cl__print_status_xml(sb->target_abspath, sb->target_path,
161 path, status, sb->ctx, pool);
163 return svn_cl__print_status(sb->target_abspath, sb->target_path,
165 sb->suppress_externals_placeholders,
166 sb->detailed,
167 sb->show_last_committed,
168 sb->skip_unrecognized,
169 sb->repos_locks,
170 &sb->text_conflicts,
171 &sb->prop_conflicts,
172 &sb->tree_conflicts,
173 sb->ctx,
185 struct status_baton *sb = baton;
200 svn_client_status_t *twks = svn_client_status_dup(status, sb->cl_pool);
215 sb->ctx->wc_ctx,
217 sb->cl_pool, pool));
225 sb->ctx->wc_ctx,
227 sb->cl_pool, pool));
245 const char *cl_key = apr_pstrdup(sb->cl_pool, status->changelist);
246 struct status_cache *scache = apr_pcalloc(sb->cl_pool, sizeof(*scache));
247 scache->path = apr_pstrdup(sb->cl_pool, path);
248 scache->target_abspath = apr_pstrdup(sb->cl_pool, sb->target_abspath);
249 scache->target_path = apr_pstrdup(sb->cl_pool, sb->target_path);
250 scache->status = svn_client_status_dup(status, sb->cl_pool);
253 svn_hash_gets(sb->cached_changelists, cl_key);
256 path_array = apr_array_make(sb->cl_pool, 1,
258 svn_hash_sets(sb->cached_changelists, cl_key, path_array);
281 struct status_baton sb;
303 sb.had_print_error = FALSE;
321 sb.suppress_externals_placeholders = (opt_state->quiet
323 sb.detailed = (opt_state->verbose || opt_state->update);
324 sb.show_last_committed = opt_state->verbose;
325 sb.skip_unrecognized = opt_state->quiet;
326 sb.repos_locks = opt_state->update;
327 sb.xml_mode = opt_state->xml;
328 sb.cached_changelists = master_cl_hash;
329 sb.cl_pool = scratch_pool;
330 sb.text_conflicts = 0;
331 sb.prop_conflicts = 0;
332 sb.tree_conflicts = 0;
333 sb.ctx = ctx;
345 SVN_ERR(svn_dirent_get_absolute(&(sb.target_abspath), target,
347 sb.target_path = target;
366 print_status, &sb,
415 sb.target_abspath = scache->target_abspath;
416 sb.target_path = scache->target_path;
417 SVN_ERR(print_status_normal_or_xml(&sb, scache->path,
435 SVN_ERR(print_conflict_stats(&sb, scratch_pool));