Skip to content

Commit

Permalink
[FIXED JENKINS-11027] implement getCommitId
Browse files Browse the repository at this point in the history
  • Loading branch information
kutzi committed Sep 18, 2011
1 parent fd4c91b commit df35d1e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -28,7 +28,7 @@ THE SOFTWARE.
<parent>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>plugin</artifactId>
<version>1.399</version>
<version>1.405</version>
<!--
<version>1.420</version>
-->
Expand Down
8 changes: 7 additions & 1 deletion src/main/java/hudson/scm/SubversionChangeLogSet.java
Expand Up @@ -55,7 +55,7 @@ public final class SubversionChangeLogSet extends ChangeLogSet<LogEntry> {
*/
private Map<String,Long> revisionMap;

/*package*/ SubversionChangeLogSet(AbstractBuild build, List<LogEntry> logs) {
/*package*/ SubversionChangeLogSet(AbstractBuild<?,?> build, List<LogEntry> logs) {
super(build);
// we want recent changes first
Collections.sort(logs,new Comparator<LogEntry>() {
Expand Down Expand Up @@ -133,6 +133,7 @@ public SubversionChangeLogSet getParent() {
// because of the classloader difference, we need to extend this method to make it accessible
// to the rest of SubversionSCM
@Override
@SuppressWarnings("rawtypes")
protected void setParent(ChangeLogSet changeLogSet) {
super.setParent(changeLogSet);
}
Expand All @@ -152,6 +153,11 @@ public int getRevision() {
public void setRevision(int revision) {
this.revision = revision;
}

@Override
public String getCommitId() {
return String.valueOf(revision);
}

@Override
public User getAuthor() {
Expand Down

0 comments on commit df35d1e

Please sign in to comment.