commit | 1a676d44570c344a324e7168fee8650e2ad977fc | [log] [tgz] |
---|---|---|
author | David Pursehouse <david.pursehouse@sonymobile.com> | Tue Mar 01 17:44:32 2016 +0900 |
committer | David Pursehouse <david.pursehouse@sonymobile.com> | Tue Mar 01 17:45:44 2016 +0900 |
tree | 5513feb0ab02cf31e8b5f30aadb1ed79c769238f | |
parent | 6d2c897f216d5fef78d93c27daa930bff4b3da7a [diff] |
Adapt to changed PatchLineCommentsUtil API Change I69c46ab4b on core Gerrit replaced the upsertComments method with putComments. Change-Id: Ia5705dd555c5257a4dd0a571265a8b578d6e4d35
diff --git a/src/main/java/com/googlesource/gerrit/plugins/importer/ReplayInlineCommentsStep.java b/src/main/java/com/googlesource/gerrit/plugins/importer/ReplayInlineCommentsStep.java index 638ba8c..0015cc0 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/importer/ReplayInlineCommentsStep.java +++ b/src/main/java/com/googlesource/gerrit/plugins/importer/ReplayInlineCommentsStep.java
@@ -203,7 +203,7 @@ ChangeUpdate update = updateFactory.create(ctrl, TimeUtil.nowTs()); update.setPatchSetId(ps.getId()); plcUtil.deleteComments(db, update, del); - plcUtil.upsertComments(db, update, ups); + plcUtil.putComments(db, update, ups); update.commit(); }