Lines Matching refs:sb

88 print_conflict_stats(struct status_baton *sb, apr_pool_t *pool)
90 if (sb->text_conflicts > 0 || sb->prop_conflicts > 0 ||
91 sb->tree_conflicts > 0)
94 if (sb->text_conflicts > 0)
96 (pool, _(" Text conflicts: %u\n"), sb->text_conflicts));
98 if (sb->prop_conflicts > 0)
100 (pool, _(" Property conflicts: %u\n"), sb->prop_conflicts));
102 if (sb->tree_conflicts > 0)
104 (pool, _(" Tree conflicts: %u\n"), sb->tree_conflicts));
114 svn_stringbuf_t *sb = svn_stringbuf_create_empty(pool);
116 svn_xml_make_open_tag(&sb, pool, svn_xml_normal, "target",
119 return svn_cl__error_checked_fputs(sb->data, stdout);
130 svn_stringbuf_t *sb = svn_stringbuf_create_empty(pool);
136 svn_xml_make_open_tag(&sb, pool, svn_xml_self_closing, "against",
140 svn_xml_make_close_tag(&sb, pool, "target");
142 return svn_cl__error_checked_fputs(sb->data, stdout);
154 struct status_baton *sb = baton;
156 if (sb->xml_mode)
157 return svn_cl__print_status_xml(sb->cwd_abspath, path, status,
158 sb->ctx, pool);
160 return svn_cl__print_status(sb->cwd_abspath, path, status,
161 sb->suppress_externals_placeholders,
162 sb->detailed,
163 sb->show_last_committed,
164 sb->skip_unrecognized,
165 sb->repos_locks,
166 &sb->text_conflicts,
167 &sb->prop_conflicts,
168 &sb->tree_conflicts,
169 sb->ctx,
181 struct status_baton *sb = baton;
196 svn_client_status_t *twks = svn_client_status_dup(status, sb->cl_pool);
211 sb->ctx->wc_ctx,
213 sb->cl_pool, pool));
221 sb->ctx->wc_ctx,
223 sb->cl_pool, pool));
241 const char *cl_key = apr_pstrdup(sb->cl_pool, status->changelist);
242 struct status_cache *scache = apr_pcalloc(sb->cl_pool, sizeof(*scache));
243 scache->path = apr_pstrdup(sb->cl_pool, path);
244 scache->status = svn_client_status_dup(status, sb->cl_pool);
247 svn_hash_gets(sb->cached_changelists, cl_key);
250 path_array = apr_array_make(sb->cl_pool, 1,
252 svn_hash_sets(sb->cached_changelists, cl_key, path_array);
275 struct status_baton sb;
290 sb.had_print_error = FALSE;
308 SVN_ERR(svn_dirent_get_absolute(&(sb.cwd_abspath), "", scratch_pool));
309 sb.suppress_externals_placeholders = (opt_state->quiet
311 sb.detailed = (opt_state->verbose || opt_state->update);
312 sb.show_last_committed = opt_state->verbose;
313 sb.skip_unrecognized = opt_state->quiet;
314 sb.repos_locks = opt_state->update;
315 sb.xml_mode = opt_state->xml;
316 sb.cached_changelists = master_cl_hash;
317 sb.cl_pool = scratch_pool;
318 sb.text_conflicts = 0;
319 sb.prop_conflicts = 0;
320 sb.tree_conflicts = 0;
321 sb.ctx = ctx;
349 print_status, &sb,
397 SVN_ERR(print_status_normal_or_xml(&sb, scache->path,
415 SVN_ERR(print_conflict_stats(&sb, scratch_pool));