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

Function dirEntryToStatus

plugins/subversion/3rdparty/kdevsvncpp/client_status.cpp:130–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128 }
129
130 static Status
131 dirEntryToStatus(const char * path, const DirEntry & dirEntry)
132 {
133 Pool pool;
134
135 svn_wc_entry_t * e =
136 static_cast<svn_wc_entry_t *>(
137 apr_pcalloc(pool, sizeof(svn_wc_entry_t)));
138
139 std::string url(path);
140 url += '/';
141 url += dirEntry.name();
142
143 e->name = dirEntry.name();
144 e->revision = dirEntry.createdRev();
145 e->url = url.c_str();
146 e->kind = dirEntry.kind();
147 e->schedule = svn_wc_schedule_normal;
148 e->text_time = dirEntry.time();
149 e->prop_time = dirEntry.time();
150 e->cmt_rev = dirEntry.createdRev();
151 e->cmt_date = dirEntry.time();
152 e->cmt_author = dirEntry.lastAuthor();
153
154 svn_wc_status2_t * s =
155 static_cast<svn_wc_status2_t *>(
156 apr_pcalloc(pool, sizeof(svn_wc_status2_t)));
157 s->entry = e;
158 s->text_status = svn_wc_status_normal;
159 s->prop_status = svn_wc_status_normal;
160 s->locked = 0;
161 s->switched = 0;
162 s->repos_text_status = svn_wc_status_normal;
163 s->repos_prop_status = svn_wc_status_normal;
164
165 return Status(url.c_str(), s);
166 }
167
168
169 static svn_revnum_t

Callers 1

remoteStatusFunction · 0.85

Calls 7

createdRevMethod · 0.80
timeMethod · 0.80
lastAuthorMethod · 0.80
StatusClass · 0.70
nameMethod · 0.45
c_strMethod · 0.45
kindMethod · 0.45

Tested by

no test coverage detected