Skip to content
Permalink
Browse files

[FIXED JENKINS-11600] added getDate and getRevision implementations t…

…o ChangeLogSet.Entry
  • Loading branch information...
Rob Petti
Rob Petti committed Nov 3, 2011
1 parent 269c541 commit 1face9d522c9886ec0328b24e72bf97a2b782216
Showing with 10 additions and 0 deletions.
  1. +10 −0 src/main/java/hudson/plugins/perforce/PerforceChangeLogEntry.java
@@ -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}
*/

0 comments on commit 1face9d

Please sign in to comment.
You can’t perform that action at this time.