| 53 | } |
| 54 | |
| 55 | void |
| 56 | Property::list() |
| 57 | { |
| 58 | Pool pool; |
| 59 | Revision revision; |
| 60 | |
| 61 | m_entries.clear(); |
| 62 | apr_array_header_t * props; |
| 63 | svn_error_t * error = |
| 64 | svn_client_proplist(&props, |
| 65 | m_path.c_str(), |
| 66 | revision, |
| 67 | false, /* recurse */ |
| 68 | *m_context, |
| 69 | pool); |
| 70 | if (error != nullptr) |
| 71 | { |
| 72 | throw ClientException(error); |
| 73 | } |
| 74 | |
| 75 | for (int j = 0; j < props->nelts; ++j) |
| 76 | { |
| 77 | svn_client_proplist_item_t *item = |
| 78 | ((svn_client_proplist_item_t **)props->elts)[j]; |
| 79 | |
| 80 | apr_hash_index_t *hi; |
| 81 | |
| 82 | for (hi = apr_hash_first(pool, item->prop_hash); hi; |
| 83 | hi = apr_hash_next(hi)) |
| 84 | { |
| 85 | const void *key; |
| 86 | void *val; |
| 87 | |
| 88 | apr_hash_this(hi, &key, nullptr, &val); |
| 89 | |
| 90 | m_entries.push_back(PropertyEntry( |
| 91 | (const char *)key, getValue((const char *)key).c_str())); |
| 92 | } |
| 93 | } |
| 94 | } |
| 95 | |
| 96 | std::string |
| 97 | Property::getValue(const char * name) |
no test coverage detected