_cachedRevision = versionName;
doneSelf = true;
} else {
- DAVResource* child = addChildDirectory(hrefPtr)->collection();
+ DAVResource* child = parseChildDirectory(hrefPtr)->collection();
string s = strutils::strip(versionName);
if (!s.empty()) {
child->setVersionName(versionName);
return child;
}
+SVNDirectory*
+SVNDirectory::parseChildDirectory(const std::string& dirName)
+{
+ assert(!dav->childWithName(dirName));
+ DAVCollection* childCol = dav->createChildCollection(dirName);
+ SVNDirectory* child = new SVNDirectory(this, childCol);
+ childCol->setVersionName(child->cachedRevision());
+ _children.push_back(child);
+ return child;
+}
+
void SVNDirectory::deleteChildByName(const std::string& nm)
{
DAVResource* child = dav->childWithName(nm);