|
|
@ -107,6 +107,11 @@ public abstract class RevFilter { |
|
|
|
return this; |
|
|
|
return this; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
public boolean requiresCommitBody() { |
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public String toString() { |
|
|
|
public String toString() { |
|
|
|
return "ALL"; |
|
|
|
return "ALL"; |
|
|
@ -127,6 +132,11 @@ public abstract class RevFilter { |
|
|
|
return this; |
|
|
|
return this; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
public boolean requiresCommitBody() { |
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public String toString() { |
|
|
|
public String toString() { |
|
|
|
return "NONE"; |
|
|
|
return "NONE"; |
|
|
@ -147,6 +157,11 @@ public abstract class RevFilter { |
|
|
|
return this; |
|
|
|
return this; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
public boolean requiresCommitBody() { |
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public String toString() { |
|
|
|
public String toString() { |
|
|
|
return "NO_MERGES"; |
|
|
|
return "NO_MERGES"; |
|
|
@ -174,6 +189,11 @@ public abstract class RevFilter { |
|
|
|
return this; |
|
|
|
return this; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
public boolean requiresCommitBody() { |
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public String toString() { |
|
|
|
public String toString() { |
|
|
|
return "MERGE_BASE"; |
|
|
|
return "MERGE_BASE"; |
|
|
@ -189,6 +209,12 @@ public abstract class RevFilter { |
|
|
|
return NotRevFilter.create(this); |
|
|
|
return NotRevFilter.create(this); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** @return true if the filter needs the commit body to be parsed. */ |
|
|
|
|
|
|
|
public boolean requiresCommitBody() { |
|
|
|
|
|
|
|
// Assume true to be backward compatible with prior behavior.
|
|
|
|
|
|
|
|
return true; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Determine if the supplied commit should be included in results. |
|
|
|
* Determine if the supplied commit should be included in results. |
|
|
|
* |
|
|
|
* |
|
|
@ -196,7 +222,8 @@ public abstract class RevFilter { |
|
|
|
* the active walker this filter is being invoked from within. |
|
|
|
* the active walker this filter is being invoked from within. |
|
|
|
* @param cmit |
|
|
|
* @param cmit |
|
|
|
* the commit currently being tested. The commit has been parsed |
|
|
|
* the commit currently being tested. The commit has been parsed |
|
|
|
* and its body is available for inspection. |
|
|
|
* and its body is available for inspection only if the filter |
|
|
|
|
|
|
|
* returns true from {@link #requiresCommitBody()}. |
|
|
|
* @return true to include this commit in the results; false to have this |
|
|
|
* @return true to include this commit in the results; false to have this |
|
|
|
* commit be omitted entirely from the results. |
|
|
|
* commit be omitted entirely from the results. |
|
|
|
* @throws StopWalkException |
|
|
|
* @throws StopWalkException |
|
|
|