Fix is:watched on multiple projects

If the caller ran is:watched the final predicate tree used an AND to
join the different projects together.  This should be an OR node.  An
OR was already used for watchedby:other.

Bug: issue 2013
Change-Id: Ic634b62691e0ef4da98b27ae4f446bca5a5eda5c
This commit is contained in:
Shawn Pearce
2013-07-17 08:56:34 -07:00
parent 9c65a00298
commit d94108d2fc

View File

@@ -89,7 +89,7 @@ class IsWatchedByPredicate extends AndPredicate<ChangeData> {
} else if (checkIsVisible) {
return ImmutableList.of(or(r), builder.is_visible());
} else {
return r;
return ImmutableList.of(or(r));
}
}