Merge "Fix using "Default Base For Merges""

This commit is contained in:
Ben Rohlfs
2019-09-18 07:48:37 +00:00
committed by Gerrit Code Review

View File

@@ -890,12 +890,15 @@
_changeChanged(change) {
if (!change || !this._patchRange || !this._allPatchSets) { return; }
// Update patchNum before getting basePatchNum.
// We get the parent first so we keep the original value for basePatchNum
// and not the updated value.
const parent = this._getBasePatchNum(change, this._patchRange);
this.set('_patchRange.patchNum', this._patchRange.patchNum ||
this.computeLatestPatchNum(this._allPatchSets));
const parent = this._getBasePatchNum(change, this._patchRange);
this.set('_patchRange.basePatchNum', parent);
const title = change.subject + ' (' + change.change_id.substr(0, 9) + ')';
this.fire('title-change', {title});
},