define new searchdataclausepath to replace the old dir: filtering mechanism. ORing dirs now works

This commit is contained in:
Jean-Francois Dockes
2013-01-05 16:21:30 +01:00
parent 9e88426d13
commit cbc269abb1
10 changed files with 200 additions and 164 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ bool subtreelist(RclConfig *config, const string& top,
Rcl::SearchData *sd = new Rcl::SearchData(Rcl::SCLT_OR, cstr_null);
RefCntr<Rcl::SearchData> rq(sd);
rq->addDirSpec(top);
sd->addClause(new Rcl::SearchDataClausePath(top, false));
Rcl::Query query(&rcldb);
query.setQuery(rq);