Use PolyGerrit-style URLs and project/+/changeId format in change emails

Gerrit preferes the ChangeId that includes the project name. This commit
adds that to the change URLs used in emails. It adapts inbound email
parsing and all necessary tests.

PolyGerrit is now the default so we can switch those change links in
emails over to PolyGerrit's URL schema.

Change-Id: I9233a1c24779a36c5f3b63cf1326c26aed17ffd5
This commit is contained in:
Patrick Hiesel
2018-07-26 15:12:57 +02:00
parent f71363fe0c
commit a0203dbea6
6 changed files with 27 additions and 50 deletions

View File

@@ -23,7 +23,7 @@ import org.junit.Test;
public class TextParserTest extends AbstractParserTest {
private static final String quotedFooter =
""
+ "> To view, visit https://gerrit-review.googlesource.com/123\n"
+ "> To view, visit https://gerrit-review.googlesource.com/c/project/+/123\n"
+ "> To unsubscribe, visit https://gerrit-review.googlesource.com\n"
+ "> \n"
+ "> Gerrit-MessageType: comment\n"