fixup! Prune redundant items from SCM data source

This commit is contained in:
Allan Odgaard
2012-08-21 23:36:37 +02:00
parent 566d9b27dc
commit 6fa92db265

View File

@@ -54,10 +54,10 @@ _Iter prune_path_children (_Iter it, _Iter last)
{
_Iter out = it;
std::sort(it, last);
for(std::string parent = NULL_STR; it != last; parent = *it++)
for(std::string parent = NULL_STR; it != last; ++it)
{
if(it->size() <= parent.size() || it->at(parent.size()) != '/' || it->find(parent) != 0)
*out++ = *it;
*out++ = parent = *it;
}
return out;
}