10 |
|
|
11 |
|
#include "Client.hpp" |
12 |
|
|
13 |
< |
namespace api |
13 |
> |
/*namespace api |
14 |
|
{ |
15 |
|
|
16 |
|
namespace Apr |
17 |
|
{ |
18 |
|
|
19 |
|
template <> |
20 |
< |
Array<const char *>::Array(_L<cse::String>::ConstIterator begin, _L<cse::String>::ConstIterator end) |
20 |
> |
inline Array<const char *>::Array(_L<cse::String>::ConstIterator begin, _L<cse::String>::ConstIterator end) |
21 |
|
{ |
22 |
|
_forall (_L<cse::String>::ConstIterator, string, begin, end) |
23 |
|
Push() = string->NullTerminate(); |
25 |
|
|
26 |
|
} |
27 |
|
|
28 |
< |
} |
28 |
> |
}*/ |
29 |
|
|
30 |
|
namespace Subversion |
31 |
|
{ |
98 |
|
void Client::Update(const _L<cse::String> &paths) |
99 |
|
{ |
100 |
|
::svn_opt_revision_t revision = { ::svn_opt_revision_head }; |
101 |
+ |
api::Apr::Array<const char *> array; |
102 |
+ |
|
103 |
+ |
_foreach(const _L<cse::String>, path, paths) |
104 |
+ |
array.Push() = path->NullTerminate(); |
105 |
+ |
|
106 |
|
api::Apr::Pool pool; |
107 |
|
|
108 |
< |
CheckError(::svn_client_update2(NULL, api::Apr::Array<const char *>(paths.Begin(), paths.End()), &revision, false, true, context, pool)); |
108 |
> |
CheckError(::svn_client_update2(NULL, /*api::Apr::Array<const char *>(paths.Begin(), paths.End())*/ array, &revision, false, true, context, pool)); |
109 |
|
} |
110 |
|
|
111 |
|
} |