Files
gerrit/java
David Pursehouse 29ab7f8a5d CommentSender: Use UrlFormatter to get URLs for file and comments
CommentSender is hard coded to provide the direct URL to a filename
within a patch, and to the inline comments. The hard-coded URLs are
in the legacy format, meaning they do not include the project name
and are inconsistent with other links included in notifications and
console messages from Gerrit.

Hard-coding the URLs also means it's not possible for plugins to
provide alternative URLs.

Add new methods on the UrlFormatter interface, and provide default
implementations that include the project name, thus making the URLs
consistent with other URLs emitted by Gerrit, and also allowing
plugins to provide alternatives.

Change-Id: I0991dea120856c2c2bf1304749961e28b0b73a24
2019-06-19 08:11:26 +09:00
..