Move change row version bump to commitMessageNotForChange()
I5d7fb4cc resolved this merge conflict of the change in stable-2.9 (which did not have this helper method) in a slightly more verbose way than necessary. Change-Id: I1f09b712ae1a34d2c49f3507e1440373811677f9
This commit is contained in:
@@ -201,10 +201,6 @@ public class ChangeInserter {
|
||||
|
||||
if(!messageIsForChange()) {
|
||||
commitMessageNotForChange();
|
||||
if (changeMessage != null) {
|
||||
ChangeUtil.bumpRowVersionNotLastUpdatedOn(
|
||||
changeMessage.getKey().getParentKey(), db);
|
||||
}
|
||||
}
|
||||
gitRefUpdated.fire(change.getProject(), patchSet.getRefName(),
|
||||
ObjectId.zeroId(), commit);
|
||||
@@ -236,6 +232,8 @@ public class ChangeInserter {
|
||||
if (changeMessage != null) {
|
||||
Change otherChange =
|
||||
db.changes().get(changeMessage.getPatchSetId().getParentKey());
|
||||
ChangeUtil.bumpRowVersionNotLastUpdatedOn(
|
||||
changeMessage.getKey().getParentKey(), db);
|
||||
ChangeControl otherControl =
|
||||
refControl.getProjectControl().controlFor(otherChange);
|
||||
ChangeUpdate updateForOtherChange =
|
||||
|
||||
Reference in New Issue
Block a user