Write comment on patch set/change from MergeValidationListener

22 views
Skip to first unread message

Andreas Wederbrand

unread,
Jul 10, 2014, 9:10:28 AM7/10/14
to Repo and Gerrit Discussion
Hi!

I've written a plugin that does preMerge validation on a patch set. It works correctly except that I haven't found a way to communicate back to the user what validation errors I've found.

From what I can tell the only way to reject the merge is to
    throw new MergeValidationException(PATH_CONFLICT);

No other message can be given.

Is there any way to send other exceptions or exceptions with another message?
Or to write to the comments from inside the plugin?

Thanks!
Reply all
Reply to author
Forward
0 new messages