TestRepository: Expose some getters for CommitBuilder
Change-Id: Ic6d179bd2de0081633c22fb82ca68ea619cb686f
This commit is contained in:
parent
da85ca73ff
commit
828721826a
|
@ -915,6 +915,10 @@ public CommitBuilder parent(RevCommit p) throws Exception {
|
|||
return this;
|
||||
}
|
||||
|
||||
public List<RevCommit> parents() {
|
||||
return Collections.unmodifiableList(parents);
|
||||
}
|
||||
|
||||
public CommitBuilder noParents() {
|
||||
parents.clear();
|
||||
return this;
|
||||
|
@ -965,6 +969,10 @@ public CommitBuilder message(String m) {
|
|||
return this;
|
||||
}
|
||||
|
||||
public String message() {
|
||||
return message;
|
||||
}
|
||||
|
||||
public CommitBuilder tick(int secs) {
|
||||
tick = secs;
|
||||
return this;
|
||||
|
@ -981,11 +989,19 @@ public CommitBuilder author(PersonIdent a) {
|
|||
return this;
|
||||
}
|
||||
|
||||
public PersonIdent author() {
|
||||
return author;
|
||||
}
|
||||
|
||||
public CommitBuilder committer(PersonIdent c) {
|
||||
committer = c;
|
||||
return this;
|
||||
}
|
||||
|
||||
public PersonIdent committer() {
|
||||
return committer;
|
||||
}
|
||||
|
||||
public CommitBuilder insertChangeId() {
|
||||
insertChangeId = true;
|
||||
return this;
|
||||
|
|
Loading…
Reference in New Issue