Migrate contributor agreements to All-Projects.

Added a new schema to move the ContributorAgreement, AccountAgreement,
and AccountGroupAgreement information into the All-Projects
project.config.

Updated VersionedMetaData to expose a way to do batch commits to the
meta data.

Change-Id: Ifb3fdd8c0d6a0c988941d6949f6501b8f8856412
This commit is contained in:
Colby Ranger
2012-04-18 16:16:30 -07:00
parent fb1039c287
commit 1eee2c9d8f
7 changed files with 601 additions and 69 deletions

View File

@@ -20,6 +20,8 @@ import com.google.gerrit.reviewdb.server.ReviewDb;
import com.google.gerrit.server.GerritPersonIdent;
import com.google.gerrit.server.GerritPersonIdentProvider;
import com.google.gerrit.server.config.AllProjectsName;
import com.google.gerrit.server.config.AnonymousCowardName;
import com.google.gerrit.server.config.AnonymousCowardNameProvider;
import com.google.gerrit.server.config.GerritServerConfig;
import com.google.gerrit.server.config.SitePath;
import com.google.gerrit.server.git.GitRepositoryManager;
@@ -122,6 +124,10 @@ public class InMemoryDatabase implements SchemaFactory<ReviewDb> {
bind(GitRepositoryManager.class) //
.to(LocalDiskRepositoryManager.class);
bind(String.class) //
.annotatedWith(AnonymousCowardName.class) //
.toProvider(AnonymousCowardNameProvider.class);
}
}).getBinding(Key.get(SchemaVersion.class, Current.class))
.getProvider().get();