|
|
return NULL; | return NULL; |
} | } |
| |
|
struct StatusEntriesBaton { |
|
apr_pool_t* pool; |
|
apr_hash_t* hash; |
|
}; |
|
|
|
static void StatusEntriesFunc (void *baton, |
|
const char *path, |
|
svn_wc_status_t *status) |
|
{ |
|
svn_wc_status_t* stat; |
|
StatusEntriesBaton* seb = (StatusEntriesBaton*)baton; |
|
|
|
path = apr_pstrdup( seb->pool, path ); |
|
stat = svn_wc_dup_status (status, seb->pool); |
|
apr_hash_set( seb->hash, path, APR_HASH_KEY_STRING, stat ); |
|
} |
|
|
static StatusEntries | static StatusEntries |
localStatus (const char * path, | localStatus (const char * path, |
const bool descend, | const bool descend, |
|
|
apr_hash_t *status_hash; | apr_hash_t *status_hash; |
svn_revnum_t revnum; | svn_revnum_t revnum; |
Pool pool; | Pool pool; |
|
StatusEntriesBaton baton; |
| |
|
status_hash = apr_hash_make( pool ); |
|
baton.hash = status_hash; |
|
baton.pool = pool; |
|
|
error = svn_client_status ( | error = svn_client_status ( |
&status_hash, // pointer to hash |
|
&revnum, // revnum | &revnum, // revnum |
path, // path | path, // path |
|
0, |
|
StatusEntriesFunc, // status func |
|
&baton, // status baton |
descend, | descend, |
get_all, | get_all, |
update, | update, |
|
|
svn_error_t *error; | svn_error_t *error; |
apr_hash_t *status_hash; | apr_hash_t *status_hash; |
Pool pool; | Pool pool; |
|
StatusEntriesBaton baton; |
| |
|
status_hash = apr_hash_make( pool ); |
|
baton.hash = status_hash; |
|
baton.pool = pool; |
|
|
error = svn_client_status ( | error = svn_client_status ( |
&status_hash, // pointer to hash |
0, // revnum |
NULL, // revnum |
|
path, // path | path, // path |
false, // descend |
0, |
true, // get all |
StatusEntriesFunc, // status func |
false, //update |
&baton, // status baton |
false, //no_ignore, |
false, |
*context, //client ctx |
true, |
|
false, |
|
false, |
|
*context, //client ctx |
pool); | pool); |
| |
if (error != NULL) | if (error != NULL) |