Add wait_for_commit to /review

Setting wait_for_commit to true permits callers to wait for the index
commit to finish before returning to the client, allowing the client
to immediately run a search and see the modifications match.

Change-Id: I8db6574a340eb76e388c5bb7adc902d81ccb96be
This commit is contained in:
Shawn Pearce
2013-06-26 09:14:08 -06:00
parent 75ac1f1b99
commit ff5e6f60d9
3 changed files with 15 additions and 2 deletions

View File

@@ -229,6 +229,7 @@ public class ReviewCommand extends SshCommand {
review.labels = Maps.newTreeMap();
review.drafts = PostReview.DraftHandling.PUBLISH;
review.strictLabels = false;
review.waitForCommit = true;
for (ApproveOption ao : optionList) {
Short v = ao.value();
if (v != null) {