Merge branch 'stable-2.12'
* stable-2.12: SubmoduleSubscriptionsIT: Add config with 'submit whole topic' enabled Fix putTopic hook firing SubmoduleSubscriptionsIT: Annotate with @NoHttpd Change.Id: Avoid NumberFormatException on empty user edit ref RelatedChanges: Show "Submitted Together" also for changes with topic Set version to 2.11.9 Release notes for Gerrit 2.11.9 Fix duplicate links in document Fix example for "Set Diff Preferences" in REST API documentation Change-Id: I74f4e85dda55addfc760fee037b494781b94e3ff
This commit is contained in:
commit
c7f3925202
@ -1300,7 +1300,7 @@ link:#diff-preferences-input[DiffPreferencesInput] entity.
|
||||
|
||||
.Request
|
||||
----
|
||||
GET /a/accounts/self/preferences.diff HTTP/1.0
|
||||
PUT /a/accounts/self/preferences.diff HTTP/1.0
|
||||
Content-Type: application/json; charset=UTF-8
|
||||
|
||||
{
|
||||
|
@ -1651,7 +1651,7 @@ is returned that describes the commit.
|
||||
}
|
||||
----
|
||||
|
||||
[[get-content]]
|
||||
[[get-content-from-commit]]
|
||||
=== Get Content
|
||||
--
|
||||
'GET /projects/link:#project-name[\{project-name\}]/commits/link:#commit-id[\{commit-id\}]/files/link:rest-api-changes.html#file-id[\{file-id\}]/content'
|
||||
|
51
ReleaseNotes/ReleaseNotes-2.11.9.txt
Normal file
51
ReleaseNotes/ReleaseNotes-2.11.9.txt
Normal file
@ -0,0 +1,51 @@
|
||||
Release notes for Gerrit 2.11.9
|
||||
===============================
|
||||
|
||||
Gerrit 2.11.9 is now available:
|
||||
|
||||
link:https://gerrit-releases.storage.googleapis.com/gerrit-2.11.9.war[
|
||||
https://gerrit-releases.storage.googleapis.com/gerrit-2.11.9.war]
|
||||
|
||||
There are no schema changes from link:ReleaseNotes-2.11.8.html[2.11.8].
|
||||
|
||||
Bug Fixes
|
||||
---------
|
||||
|
||||
* link:https://code.google.com/p/gerrit/issues/detail?id=4070[Issue 4070]:
|
||||
Don't return current patch set in queries if the current patch set is not
|
||||
visible.
|
||||
+
|
||||
When querying changes with the `gerrit query` ssh command, and passing the
|
||||
`--current-patch-set` option, the current patch set was included even when
|
||||
it is not visible to the caller (for example when the patch set is a draft,
|
||||
and the caller cannot see drafts).
|
||||
|
||||
* link:https://code.google.com/p/gerrit/issues/detail?id=3970[Issue 3970]:
|
||||
Fix keyboard shortcuts for special processing of CTRL and META.
|
||||
+
|
||||
The processing of CTRL and META was incorrectly removed in Gerrit version
|
||||
2.11.8, resulting in shortcuts like 'STRG+T' being interpreted as 'T'.
|
||||
|
||||
* link:https://code.google.com/p/gerrit/issues/detail?id=4056[Issue 4056]:
|
||||
Fix download URLs for BouncyCastle libraries.
|
||||
+
|
||||
The location of the libraries was moved, so the download URLs are updated
|
||||
accordingly.
|
||||
|
||||
* link:https://code.google.com/p/gerrit/issues/detail?id=4055[Issue 4055]:
|
||||
Fix subject for 'Updated Changes' lines on push.
|
||||
+
|
||||
When a change was updated it showed the subject from the previous patch set
|
||||
instead of the subject from the new current patch set.
|
||||
|
||||
* Fix incorrect loading of access sections in `project.config` files.
|
||||
|
||||
* Fix internal server error when `auth.userNameToLowerCase` is enabled
|
||||
and the auth backend does not provide the username.
|
||||
|
||||
* Fix error reindexing changes when a change no longer exists.
|
||||
|
||||
* Fix internal server error when loading submit rules.
|
||||
|
||||
* Fix internal server error when parsing tracking footers from commit
|
||||
messages.
|
@ -16,6 +16,7 @@ Version 2.12.x
|
||||
[[2_11]]
|
||||
Version 2.11.x
|
||||
--------------
|
||||
* link:ReleaseNotes-2.11.9.html[2.11.9]
|
||||
* link:ReleaseNotes-2.11.8.html[2.11.8]
|
||||
* link:ReleaseNotes-2.11.7.html[2.11.7]
|
||||
* link:ReleaseNotes-2.11.6.html[2.11.6]
|
||||
|
@ -17,8 +17,11 @@ package com.google.gerrit.acceptance.git;
|
||||
import static com.google.common.truth.Truth.assertThat;
|
||||
|
||||
import com.google.gerrit.acceptance.GerritConfig;
|
||||
import com.google.gerrit.acceptance.NoHttpd;
|
||||
import com.google.gerrit.testutil.ConfigSuite;
|
||||
|
||||
import org.eclipse.jgit.junit.TestRepository;
|
||||
import org.eclipse.jgit.lib.Config;
|
||||
import org.eclipse.jgit.lib.ObjectId;
|
||||
import org.eclipse.jgit.revwalk.RevCommit;
|
||||
import org.eclipse.jgit.revwalk.RevTree;
|
||||
@ -26,7 +29,12 @@ import org.eclipse.jgit.revwalk.RevWalk;
|
||||
import org.eclipse.jgit.transport.RefSpec;
|
||||
import org.junit.Test;
|
||||
|
||||
@NoHttpd
|
||||
public class SubmoduleSubscriptionsIT extends AbstractSubmoduleSubscription {
|
||||
@ConfigSuite.Config
|
||||
public static Config submitWholeTopicEnabled() {
|
||||
return submitWholeTopicEnabledConfig();
|
||||
}
|
||||
|
||||
@Test
|
||||
@GerritConfig(name = "submodule.enableSuperProjectSubscriptions", value = "false")
|
||||
|
@ -215,6 +215,11 @@ public class RelatedChanges extends TabPanel {
|
||||
EnumSet.of(ListChangesOption.CURRENT_REVISION, ListChangesOption.CURRENT_COMMIT),
|
||||
new TabChangeListCallback(Tab.CHERRY_PICKS, info.project(), revision));
|
||||
|
||||
// TODO(sbeller): show only on latest revision
|
||||
ChangeApi.change(info.legacyId().get()).view("submitted_together")
|
||||
.get(new TabChangeListCallback(Tab.SUBMITTED_TOGETHER,
|
||||
info.project(), revision));
|
||||
|
||||
if (!Gerrit.info().change().isSubmitWholeTopicEnabled()
|
||||
&& info.topic() != null && !"".equals(info.topic())) {
|
||||
StringBuilder topicQuery = new StringBuilder();
|
||||
@ -226,11 +231,6 @@ public class RelatedChanges extends TabPanel {
|
||||
ListChangesOption.DETAILED_LABELS,
|
||||
ListChangesOption.LABELS),
|
||||
new TabChangeListCallback(Tab.SAME_TOPIC, info.project(), revision));
|
||||
} else {
|
||||
// TODO(sbeller): show only on latest revision
|
||||
ChangeApi.change(info.legacyId().get()).view("submitted_together")
|
||||
.get(new TabChangeListCallback(Tab.SUBMITTED_TOGETHER,
|
||||
info.project(), revision));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -160,7 +160,10 @@ public final class Change {
|
||||
RefNames.EDIT_PREFIX.length();
|
||||
int endChangeId = nextNonDigit(ref, startChangeId);
|
||||
String id = ref.substring(startChangeId, endChangeId);
|
||||
return new Change.Id(Integer.parseInt(id));
|
||||
if (id != null && !id.isEmpty()) {
|
||||
return new Change.Id(Integer.parseInt(id));
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static Id fromRefPart(String ref) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user