Skip to content

Commit

Permalink
[JENKINS-20192] don't attempt to build user during internal comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
mc1arke committed Oct 23, 2013
1 parent 18c7ccc commit 39502b6
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/main/java/hudson/scm/CVSChangeLogSet.java
Expand Up @@ -182,8 +182,14 @@ public boolean canBeMergedWith(final CVSChangeLog that) {
if (!this.getChangeDate().equals(that.getChangeDate())) {
return false;
}
if (!this.getAuthor().equals(that.getAuthor())) {
return false;
if (this.user == null && that.user != null) {
return false;
}
if (that.user == null && this.user != null) {
return false;
}
if (this.user != null && !this.user.equals(that.user)) {
return false;
}
if (!this.getMsg().equals(that.getMsg())) {
return false;
Expand Down Expand Up @@ -337,6 +343,9 @@ public void setChangeDateString(final String changeDate) {
@Override
@Exported
public User getAuthor() {
if (user == null) {
return User.getUnknown();
}
return User.get(user);
}

Expand Down

0 comments on commit 39502b6

Please sign in to comment.