Skip to content

Commit

Permalink
[FIXED JENKINS-11600] added getDate and getRevision implementations t…
Browse files Browse the repository at this point in the history
…o ChangeLogSet.Entry
  • Loading branch information
Rob Petti committed Nov 3, 2011
1 parent 269c541 commit 1face9d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/main/java/hudson/plugins/perforce/PerforceChangeLogEntry.java
Expand Up @@ -80,12 +80,22 @@ public String getChangeNumber() {
return new Integer(getChange().getChangeNumber()).toString();
}

//used for email-ext
public String getRevision() {
return getChangeNumber();
}

@Exported
public String getChangeTime() {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
return sdf.format(getChange().getDate());
}

//used for email-ext
public String getDate() {
return getChangeTime();
}

/**
* {@inheritDoc}
*/
Expand Down

0 comments on commit 1face9d

Please sign in to comment.