Lines 43-48
Link Here
|
43 |
return NULL; |
43 |
return NULL; |
44 |
} |
44 |
} |
45 |
|
45 |
|
|
|
46 |
struct StatusEntriesBaton { |
47 |
apr_pool_t* pool; |
48 |
apr_hash_t* hash; |
49 |
}; |
50 |
|
51 |
static void StatusEntriesFunc (void *baton, |
52 |
const char *path, |
53 |
svn_wc_status_t *status) |
54 |
{ |
55 |
svn_wc_status_t* stat; |
56 |
StatusEntriesBaton* seb = (StatusEntriesBaton*)baton; |
57 |
|
58 |
path = apr_pstrdup( seb->pool, path ); |
59 |
stat = svn_wc_dup_status (status, seb->pool); |
60 |
apr_hash_set( seb->hash, path, APR_HASH_KEY_STRING, stat ); |
61 |
} |
62 |
|
46 |
static StatusEntries |
63 |
static StatusEntries |
47 |
localStatus (const char * path, |
64 |
localStatus (const char * path, |
48 |
const bool descend, |
65 |
const bool descend, |
Lines 56-66
Link Here
|
56 |
apr_hash_t *status_hash; |
73 |
apr_hash_t *status_hash; |
57 |
svn_revnum_t revnum; |
74 |
svn_revnum_t revnum; |
58 |
Pool pool; |
75 |
Pool pool; |
|
|
76 |
StatusEntriesBaton baton; |
59 |
|
77 |
|
|
|
78 |
status_hash = apr_hash_make( pool ); |
79 |
baton.hash = status_hash; |
80 |
baton.pool = pool; |
81 |
|
60 |
error = svn_client_status ( |
82 |
error = svn_client_status ( |
61 |
&status_hash, // pointer to hash |
|
|
62 |
&revnum, // revnum |
83 |
&revnum, // revnum |
63 |
path, // path |
84 |
path, // path |
|
|
85 |
0, |
86 |
StatusEntriesFunc, // status func |
87 |
&baton, // status baton |
64 |
descend, |
88 |
descend, |
65 |
get_all, |
89 |
get_all, |
66 |
update, |
90 |
update, |
Lines 182-197
Link Here
|
182 |
svn_error_t *error; |
206 |
svn_error_t *error; |
183 |
apr_hash_t *status_hash; |
207 |
apr_hash_t *status_hash; |
184 |
Pool pool; |
208 |
Pool pool; |
|
|
209 |
StatusEntriesBaton baton; |
185 |
|
210 |
|
|
|
211 |
status_hash = apr_hash_make( pool ); |
212 |
baton.hash = status_hash; |
213 |
baton.pool = pool; |
214 |
|
186 |
error = svn_client_status ( |
215 |
error = svn_client_status ( |
187 |
&status_hash, // pointer to hash |
216 |
0, // revnum |
188 |
NULL, // revnum |
|
|
189 |
path, // path |
217 |
path, // path |
190 |
false, // descend |
218 |
0, |
191 |
true, // get all |
219 |
StatusEntriesFunc, // status func |
192 |
false, //update |
220 |
&baton, // status baton |
193 |
false, //no_ignore, |
221 |
false, |
194 |
*context, //client ctx |
222 |
true, |
|
|
223 |
false, |
224 |
false, |
225 |
*context, //client ctx |
195 |
pool); |
226 |
pool); |
196 |
|
227 |
|
197 |
if (error != NULL) |
228 |
if (error != NULL) |