return EXIT_SUCCESS;
}
+enum RuleType { AnyRule = 0, NoIgnoreRule = 0x01, NoRecurseRule = 0x02 };
+
static MatchRuleList::ConstIterator
-findMatchRule(const MatchRuleList &matchRules, int revnum, const QString ¤t)
+findMatchRule(const MatchRuleList &matchRules, int revnum, const QString ¤t,
+ int ruleMask = AnyRule)
{
MatchRuleList::ConstIterator it = matchRules.constBegin(),
end = matchRules.constEnd();
continue;
if (it->maxRevision != -1 && it->maxRevision < revnum)
continue;
+ if (it->action == Rules::Match::Ignore && ruleMask & NoIgnoreRule)
+ continue;
+ if (it->action == Rules::Match::Recurse && ruleMask & NoRecurseRule)
+ continue;
if (it->rx.indexIn(current) == 0)
return it;
}
if (path.isEmpty() && path_from != NULL) {
QString previous = QString::fromUtf8(path_from) + '/';
MatchRuleList::ConstIterator prevmatch =
- findMatchRule(matchRules, rev_from, previous);
+ findMatchRule(matchRules, rev_from, previous, NoRecurseRule | NoIgnoreRule);
if (prevmatch != matchRules.constEnd()) {
QString prevsvnprefix, prevrepository, prevbranch, prevpath;
splitPathName(*prevmatch, previous, &prevsvnprefix, &prevrepository,