Preference to display patch sets in reverse order

Added a new general user preference by which the
display order of the patch sets in the
ChangeScreen can be reversed so that the latest
patch set is always shown on top.

If there are a lot of patch sets for a change the
latest patch set and the links to the diffs in the
patch set are below the fold of the ChangeScreen.
In most cases users are interest in the latest
patch set. This is why it may be more convinient
if the latest patch set is always displayed on
top.

Bug: issue 556
Change-Id: I01b718252c260bfeea63819466a8286de7a43459
Signed-off-by: Edwin Kempin <edwin.kempin@gmail.com>
This commit is contained in:
Edwin Kempin
2010-10-14 14:21:50 +02:00
committed by Shawn O. Pearce
parent 002e0a9dda
commit 5b50240129
7 changed files with 66 additions and 2 deletions

View File

@@ -32,7 +32,7 @@ import java.util.List;
/** A version of the database schema. */
public abstract class SchemaVersion {
/** The current schema version. */
private static final Class<? extends SchemaVersion> C = Schema_44.class;
private static final Class<? extends SchemaVersion> C = Schema_45.class;
public static class Module extends AbstractModule {
@Override

View File

@@ -0,0 +1,25 @@
// Copyright (C) 2010 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.gerrit.server.schema;
import com.google.inject.Inject;
import com.google.inject.Provider;
public class Schema_45 extends SchemaVersion {
@Inject
Schema_45(Provider<Schema_44> prior) {
super(prior);
}
}