MCPcopy Create free account
hub / github.com/KDE/kdevelop / list

Method list

plugins/subversion/3rdparty/kdevsvncpp/property.cpp:55–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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)

Callers 1

remoteStatusFunction · 0.45

Calls 6

ClientExceptionClass · 0.85
PropertyEntryClass · 0.85
getValueFunction · 0.85
clearMethod · 0.45
c_strMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected