MergeabilityChecker: Fix isStale() optimization
Change copy constructor is missing to copy the value of lastSha1MergeTested. MergeabilityChecker relies on this value to be set to skip unnecessary mergeability status reevaluation and no-op database and index operations. Change-Id: Id4ef8388b026a68d5f1d97ee89c526a04797c5dc
This commit is contained in:
parent
c99da3a69b
commit
6e381a26e7
@ -415,6 +415,7 @@ public final class Change {
|
||||
subject = other.subject;
|
||||
topic = other.topic;
|
||||
mergeable = other.mergeable;
|
||||
lastSha1MergeTested = other.lastSha1MergeTested;
|
||||
}
|
||||
|
||||
/** Legacy 32 bit integer identity for a change. */
|
||||
|
Loading…
Reference in New Issue
Block a user