Merge branch 'stable-3.0'
* stable-3.0: ReviewersUtil: Increase multiplier for candidate list to 3 Add missing 'Allow content merges' section title in project config documentation Fix placement of footer and searchbox in config-project-config.txt AbstractQueryChangesTest: Open TestRepository in try-with-resource TestRepository: Fix resource leak flagged by Eclipse Update git submodules Update git submodules Accept more than one endpoint from the same plugin mvn.py: Explicitly specify version in mvn deploy command Add missing 'Allow content merges' section title in project config documentation Allow to disable log file compression Allow to disable log file rotation SystemLog: Don't keep Config as a member Remove mention of the offline migrator being in 3.0 AccountIT#deletePreferredEmail: Fix flakiness gerrit.sh: Fix PID definition Upgrade gitiles to 0.2-9 Use Provider<PersonIdent> in CreateProject @Singleton AccountIT: Add test for deleting preferred email AccountIT: Add test coverage of adding an email and setting preferred Change-Id: I76b25cf1201d13025fa566b893c3fd02fbf212a0
This commit is contained in:
@@ -473,13 +473,6 @@ interpretable by the 'Prolog Cafe' interpreter.
|
|||||||
You can read more about the +rules.pl+ file and the prolog rules on
|
You can read more about the +rules.pl+ file and the prolog rules on
|
||||||
link:prolog-cookbook.html[the Prolog cookbook page].
|
link:prolog-cookbook.html[the Prolog cookbook page].
|
||||||
|
|
||||||
GERRIT
|
|
||||||
------
|
|
||||||
Part of link:index.html[Gerrit Code Review]
|
|
||||||
|
|
||||||
SEARCHBOX
|
|
||||||
---------
|
|
||||||
|
|
||||||
[[submit-type]]
|
[[submit-type]]
|
||||||
=== Submit Type
|
=== Submit Type
|
||||||
|
|
||||||
@@ -569,5 +562,13 @@ Thus, Rebase Always can be considered similar to Cherry Pick, but with
|
|||||||
the important distinction that Rebase Always does not ignore dependencies.
|
the important distinction that Rebase Always does not ignore dependencies.
|
||||||
|
|
||||||
[[content_merge]]
|
[[content_merge]]
|
||||||
|
=== Allow content merges
|
||||||
If `Allow content merges` is enabled, Gerrit will try
|
If `Allow content merges` is enabled, Gerrit will try
|
||||||
to do a content merge when a path conflict occurs.
|
to do a content merge when a path conflict occurs.
|
||||||
|
|
||||||
|
GERRIT
|
||||||
|
------
|
||||||
|
Part of link:index.html[Gerrit Code Review]
|
||||||
|
|
||||||
|
SEARCHBOX
|
||||||
|
---------
|
||||||
|
@@ -38,9 +38,9 @@ data in the same repository as code changes.
|
|||||||
migrated to NoteDb. In other words, if you use
|
migrated to NoteDb. In other words, if you use
|
||||||
link:https://gerrit-review.googlesource.com/[gerrit-review], you're already
|
link:https://gerrit-review.googlesource.com/[gerrit-review], you're already
|
||||||
using NoteDb.
|
using NoteDb.
|
||||||
- NoteDb is the only database format supported by Gerrit 3.0. The offline
|
- NoteDb is the only database format supported by Gerrit 3.0. The change data
|
||||||
change data migration tool is included in Gerrit 3.0, but online
|
migration tools are only included in Gerrit 2.15 and 2.16; they are not
|
||||||
migration is only available in the 2.x line.
|
available in 3.0.
|
||||||
|
|
||||||
For an example NoteDb change, poke around at this one:
|
For an example NoteDb change, poke around at this one:
|
||||||
----
|
----
|
||||||
@@ -114,10 +114,10 @@ tool as well.
|
|||||||
* Much faster than online; can use all available CPUs, since no live traffic
|
* Much faster than online; can use all available CPUs, since no live traffic
|
||||||
needs to be served.
|
needs to be served.
|
||||||
* No degraded performance of live servers due to writing data to 2 locations.
|
* No degraded performance of live servers due to writing data to 2 locations.
|
||||||
* Available in both Gerrit 2.x and 3.0.
|
|
||||||
|
|
||||||
*Disadvantages*
|
*Disadvantages*
|
||||||
|
|
||||||
|
* Available in Gerrit 2.15 and 2.16 only.
|
||||||
* May require substantial downtime; takes about twice as long as an
|
* May require substantial downtime; takes about twice as long as an
|
||||||
link:pgm-reindex.html[offline reindex]. (In fact, one of the migration steps is a
|
link:pgm-reindex.html[offline reindex]. (In fact, one of the migration steps is a
|
||||||
full reindex, so it can't possibly take less time.)
|
full reindex, so it can't possibly take less time.)
|
||||||
|
@@ -726,7 +726,7 @@ maven_jar(
|
|||||||
sha1 = "f7be08ec23c21485b9b5a1cf1654c2ec8c58168d",
|
sha1 = "f7be08ec23c21485b9b5a1cf1654c2ec8c58168d",
|
||||||
)
|
)
|
||||||
|
|
||||||
GITILES_VERS = "0.2-8"
|
GITILES_VERS = "0.2-9"
|
||||||
|
|
||||||
GITILES_REPO = GERRIT
|
GITILES_REPO = GERRIT
|
||||||
|
|
||||||
@@ -735,14 +735,14 @@ maven_jar(
|
|||||||
artifact = "com.google.gitiles:blame-cache:" + GITILES_VERS,
|
artifact = "com.google.gitiles:blame-cache:" + GITILES_VERS,
|
||||||
attach_source = False,
|
attach_source = False,
|
||||||
repository = GITILES_REPO,
|
repository = GITILES_REPO,
|
||||||
sha1 = "714fd1d98d02cd8898532ef5169f7b23125747d6",
|
sha1 = "8248f6a8b0863990fe519e9d0de39ec5dc99c189",
|
||||||
)
|
)
|
||||||
|
|
||||||
maven_jar(
|
maven_jar(
|
||||||
name = "gitiles-servlet",
|
name = "gitiles-servlet",
|
||||||
artifact = "com.google.gitiles:gitiles-servlet:" + GITILES_VERS,
|
artifact = "com.google.gitiles:gitiles-servlet:" + GITILES_VERS,
|
||||||
repository = GITILES_REPO,
|
repository = GITILES_REPO,
|
||||||
sha1 = "a416e4ac5a0cad04410440d0b2785fa966bc5a0c",
|
sha1 = "cb47a8f1d84645acddfe2945a63ce8ce5c22a53e",
|
||||||
)
|
)
|
||||||
|
|
||||||
# prettify must match the version used in Gitiles
|
# prettify must match the version used in Gitiles
|
||||||
|
@@ -1061,6 +1061,23 @@ public class AccountIT extends AbstractDaemonTest {
|
|||||||
gApi.accounts().id(user.id().get()).addEmail(newEmailInput(email, false));
|
gApi.accounts().id(user.id().get()).addEmail(newEmailInput(email, false));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void addEmailAndSetPreferred() throws Exception {
|
||||||
|
String email = "foo.bar@example.com";
|
||||||
|
EmailInput input = new EmailInput();
|
||||||
|
input.email = email;
|
||||||
|
input.noConfirmation = true;
|
||||||
|
input.preferred = true;
|
||||||
|
gApi.accounts().self().addEmail(input);
|
||||||
|
|
||||||
|
// Account is reindexed twice; once on adding the new email,
|
||||||
|
// and then again on setting the email preferred.
|
||||||
|
accountIndexedCounter.assertReindexOf(admin, 2);
|
||||||
|
|
||||||
|
String preferred = gApi.accounts().self().get().email;
|
||||||
|
assertThat(preferred).isEqualTo(email);
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void deleteEmail() throws Exception {
|
public void deleteEmail() throws Exception {
|
||||||
String email = "foo.bar@example.com";
|
String email = "foo.bar@example.com";
|
||||||
@@ -1078,6 +1095,29 @@ public class AccountIT extends AbstractDaemonTest {
|
|||||||
assertThat(getEmails()).doesNotContain(email);
|
assertThat(getEmails()).doesNotContain(email);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void deletePreferredEmail() throws Exception {
|
||||||
|
String email = "foo.bar.baz@example.com";
|
||||||
|
EmailInput input = new EmailInput();
|
||||||
|
input.email = email;
|
||||||
|
input.noConfirmation = true;
|
||||||
|
input.preferred = true;
|
||||||
|
gApi.accounts().self().addEmail(input);
|
||||||
|
|
||||||
|
// Account is reindexed twice; once on adding the new email,
|
||||||
|
// and then again on setting the email preferred.
|
||||||
|
accountIndexedCounter.assertReindexOf(admin, 2);
|
||||||
|
|
||||||
|
assertThat(gApi.accounts().self().get().email).isEqualTo(email);
|
||||||
|
|
||||||
|
accountIndexedCounter.clear();
|
||||||
|
gApi.accounts().self().deleteEmail(input.email);
|
||||||
|
accountIndexedCounter.assertReindexOf(admin);
|
||||||
|
|
||||||
|
requestScopeOperations.resetCurrentApiUser();
|
||||||
|
assertThat(getEmails()).doesNotContain(email);
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void deleteEmailFromCustomExternalIdSchemes() throws Exception {
|
public void deleteEmailFromCustomExternalIdSchemes() throws Exception {
|
||||||
String email = "foo.bar@example.com";
|
String email = "foo.bar@example.com";
|
||||||
|
Submodule plugins/replication updated: b44768838f...fe578665e9
@@ -434,8 +434,8 @@ case "$ACTION" in
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
PID=`cat "$GERRIT_PID"`
|
||||||
if test $UID = 0; then
|
if test $UID = 0; then
|
||||||
PID=`cat "$GERRIT_PID"`
|
|
||||||
if test -f "/proc/${PID}/oom_score_adj" ; then
|
if test -f "/proc/${PID}/oom_score_adj" ; then
|
||||||
echo -1000 > "/proc/${PID}/oom_score_adj"
|
echo -1000 > "/proc/${PID}/oom_score_adj"
|
||||||
else
|
else
|
||||||
|
@@ -46,6 +46,7 @@ elif 'deploy' == args.a:
|
|||||||
cmd = [
|
cmd = [
|
||||||
'mvn',
|
'mvn',
|
||||||
'gpg:sign-and-deploy-file',
|
'gpg:sign-and-deploy-file',
|
||||||
|
'-Dversion=%s' % args.v,
|
||||||
'-DrepositoryId=%s' % args.repository,
|
'-DrepositoryId=%s' % args.repository,
|
||||||
'-Durl=%s' % args.url,
|
'-Durl=%s' % args.url,
|
||||||
]
|
]
|
||||||
|
Reference in New Issue
Block a user