|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.tek42.perforce.parse.AbstractPerforceTemplate
com.tek42.perforce.parse.Changes
public class Changes
Base API object for interacting with changelists.
| Constructor Summary | |
|---|---|
Changes(Depot depot)
|
|
| Method Summary | |
|---|---|
Changelist |
getChangelist(int number)
Returns a single changelist specified by its number. |
java.util.List<Changelist> |
getChangelists(java.lang.String path,
int lastChange,
int limit)
Returns a list of changelists that match the parameters |
java.util.List<Changelist> |
getChangelistsFromNumbers(java.util.List<java.lang.Integer> numbers)
Converts a list of numbers to a list of changes. |
java.util.List<java.lang.Integer> |
getChangeNumbers(java.lang.String path,
int start,
int limit)
A lightweight call to return changelist numbers for a given path. |
java.util.List<java.lang.Integer> |
getChangeNumbersInRange(Workspace workspace,
int first,
int last)
Return the change numbers in the range [first, last] that apply to the specified workspace. |
java.util.List<java.lang.Integer> |
getChangeNumbersInRange(Workspace workspace,
int first,
int last,
java.lang.String paths)
|
java.util.List<java.lang.Integer> |
getChangeNumbersInRangeForSinglePath(Workspace workspace,
int first,
int last,
java.lang.String path)
|
java.util.List<java.lang.Integer> |
getChangeNumbersTo(java.lang.String path,
int untilChange)
Returns a list of changenumbers that start with the most recent change and work back to the specified change. |
java.util.List<java.lang.Integer> |
getChangeNumbersTo(java.lang.String workspace,
java.lang.String path,
int untilChange)
Returns a list of changenumbers that start with the most recent change and work back to the specified change. |
| Methods inherited from class com.tek42.perforce.parse.AbstractPerforceTemplate |
|---|
getExtraParams, getLogger, getP4Exe, getPerforceResponse, getRawPerforceResponseLines, hitMax, login, parseList, saveToPerforce |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Changes(Depot depot)
| Method Detail |
|---|
public Changelist getChangelist(int number)
throws PerforceException
number -
PerforceException
public java.util.List<Changelist> getChangelists(java.lang.String path,
int lastChange,
int limit)
throws PerforceException
path - What point in the depot to show changes for?lastChange - The last changelist number to start fromlimit - The maximum changes to return if less than 1, will return everything
PerforceException
public java.util.List<java.lang.Integer> getChangeNumbers(java.lang.String path,
int start,
int limit)
throws PerforceException
To get the latest change in the depot for the project, you can use:
depot.getChangeNumbers("//project/...", -1, 1)
Note: this method follows perforce in that it starts at the highest number and works backwards. So this might not be what you want. (It certainly isn't for Hudson)
path - Path to filter onstart - The number of the change to start fromlimit - The number of changes to return
PerforceException
public java.util.List<java.lang.Integer> getChangeNumbersTo(java.lang.String path,
int untilChange)
throws PerforceException
path - untilChange -
PerforceException
public java.util.List<java.lang.Integer> getChangeNumbersTo(java.lang.String workspace,
java.lang.String path,
int untilChange)
throws PerforceException
workspace - path - one or more paths, e.g. "//testproject/... //testfw/...". Paths are assumed to be delimited by a
single space.untilChange -
PerforceException
public java.util.List<Changelist> getChangelistsFromNumbers(java.util.List<java.lang.Integer> numbers)
throws PerforceException
numbers -
PerforceException
public java.util.List<java.lang.Integer> getChangeNumbersInRange(Workspace workspace,
int first,
int last)
throws PerforceException
first - The number of the change to start fromlast - The last change to include (if applies to the workspace)
PerforceException
public java.util.List<java.lang.Integer> getChangeNumbersInRange(Workspace workspace,
int first,
int last,
java.lang.String paths)
throws PerforceException
PerforceException
public java.util.List<java.lang.Integer> getChangeNumbersInRangeForSinglePath(Workspace workspace,
int first,
int last,
java.lang.String path)
throws PerforceException
PerforceException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||