Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2009-06-13 07:06:24 +0000
committerspingel2009-06-13 07:06:24 +0000
commit1fbda3496447ed471f5e929fab036be0168a403e (patch)
tree32cf26f87ee2023727bd2d43614dedc8e5a56b9f /org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/model
parent4baf499d7c56f0b535f5a251bbf702000d25257f (diff)
downloadorg.eclipse.mylyn.tasks-1fbda3496447ed471f5e929fab036be0168a403e.tar.gz
org.eclipse.mylyn.tasks-1fbda3496447ed471f5e929fab036be0168a403e.tar.xz
org.eclipse.mylyn.tasks-1fbda3496447ed471f5e929fab036be0168a403e.zip
NEW - bug 264930: [performance] Avoid duplicate task updates for non-disjunct queries in scheduled synchronizations
https://bugs.eclipse.org/bugs/show_bug.cgi?id=264930
Diffstat (limited to 'org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/model')
-rw-r--r--org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/model/TracSearch.java11
1 files changed, 9 insertions, 2 deletions
diff --git a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/model/TracSearch.java b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/model/TracSearch.java
index 8dfc77e6c..3f9308303 100644
--- a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/model/TracSearch.java
+++ b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/model/TracSearch.java
@@ -90,12 +90,19 @@ public class TracSearch {
}
/**
+ * @see #toQuery(boolean)
+ */
+ public String toQuery() {
+ return toQuery(false);
+ }
+
+ /**
* Returns a Trac query string that conforms to the format defined at {@link http
* ://projects.edgewall.com/trac/wiki/TracQuery#QueryLanguage}.
*
* @return the empty string, if no search order and criteria are defined; a string that starts with &, otherwise
*/
- public String toQuery() {
+ public String toQuery(boolean supportsMax) {
StringBuilder sb = new StringBuilder();
if (orderBy != null) {
sb.append("&order="); //$NON-NLS-1$
@@ -104,7 +111,7 @@ public class TracSearch {
sb.append("&desc=1"); //$NON-NLS-1$
}
}
- if (max != -1) {
+ if (supportsMax && max != -1) {
sb.append("&max="); //$NON-NLS-1$
sb.append(max);
}

Back to the top