public class ChangeNotes extends AbstractChangeNotes<ChangeNotes>
Change
based on the log of its notes branch.Modifier and Type | Class and Description |
---|---|
static class |
ChangeNotes.Factory |
VersionedMetaData.BatchMetaDataUpdate
Modifier and Type | Field and Description |
---|---|
static com.google.common.collect.Ordering<com.google.gerrit.reviewdb.client.ChangeMessage> |
MESSAGE_BY_TIME |
static Comparator<com.google.gerrit.reviewdb.client.PatchLineComment> |
PatchLineCommentComparator |
repoManager
inserter, newTree, reader
Constructor and Description |
---|
ChangeNotes(GitRepositoryManager repoManager,
com.google.gerrit.reviewdb.client.Change change) |
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.ImmutableListMultimap<com.google.gerrit.reviewdb.client.PatchSet.Id,com.google.gerrit.reviewdb.client.PatchSetApproval> |
getApprovals() |
com.google.common.collect.ImmutableListMultimap<com.google.gerrit.reviewdb.client.PatchSet.Id,com.google.gerrit.reviewdb.client.PatchLineComment> |
getBaseComments() |
com.google.common.collect.ImmutableListMultimap<com.google.gerrit.reviewdb.client.PatchSet.Id,com.google.gerrit.reviewdb.client.ChangeMessage> |
getChangeMessages() |
com.google.common.collect.ImmutableListMultimap<com.google.gerrit.reviewdb.client.PatchSet.Id,com.google.gerrit.reviewdb.client.PatchLineComment> |
getPatchSetComments() |
protected com.google.gerrit.reviewdb.client.Project.NameKey |
getProjectName() |
protected String |
getRefName() |
com.google.common.collect.ImmutableSetMultimap<ReviewerState,com.google.gerrit.reviewdb.client.Account.Id> |
getReviewers() |
com.google.common.collect.ImmutableList<com.google.gerrit.common.data.SubmitRecord> |
getSubmitRecords() |
protected void |
onLoad()
Set up the metadata, parsing any state from the loaded revision.
|
protected boolean |
onSave(org.eclipse.jgit.lib.CommitBuilder commit)
Save any changes to the metadata in a commit.
|
static org.eclipse.jgit.errors.ConfigInvalidException |
parseException(com.google.gerrit.reviewdb.client.Change.Id changeId,
String fmt,
Object... args) |
static com.google.gerrit.reviewdb.client.Account.Id |
parseIdent(org.eclipse.jgit.lib.PersonIdent ident,
com.google.gerrit.reviewdb.client.Change.Id changeId) |
getChange, getChangeId, load, self
commit, commitToNewRef, getObjectId, getRevision, load, load, load, load, openUpdate, readConfig, readFile, readTree, readUTF8, saveConfig, saveFile, saveUTF8, set, set, set
public static final com.google.common.collect.Ordering<com.google.gerrit.reviewdb.client.ChangeMessage> MESSAGE_BY_TIME
public static Comparator<com.google.gerrit.reviewdb.client.PatchLineComment> PatchLineCommentComparator
public ChangeNotes(GitRepositoryManager repoManager, com.google.gerrit.reviewdb.client.Change change)
public static org.eclipse.jgit.errors.ConfigInvalidException parseException(com.google.gerrit.reviewdb.client.Change.Id changeId, String fmt, Object... args)
public static com.google.gerrit.reviewdb.client.Account.Id parseIdent(org.eclipse.jgit.lib.PersonIdent ident, com.google.gerrit.reviewdb.client.Change.Id changeId) throws org.eclipse.jgit.errors.ConfigInvalidException
org.eclipse.jgit.errors.ConfigInvalidException
public com.google.common.collect.ImmutableListMultimap<com.google.gerrit.reviewdb.client.PatchSet.Id,com.google.gerrit.reviewdb.client.PatchSetApproval> getApprovals()
public com.google.common.collect.ImmutableSetMultimap<ReviewerState,com.google.gerrit.reviewdb.client.Account.Id> getReviewers()
public com.google.common.collect.ImmutableList<com.google.gerrit.common.data.SubmitRecord> getSubmitRecords()
public com.google.common.collect.ImmutableListMultimap<com.google.gerrit.reviewdb.client.PatchSet.Id,com.google.gerrit.reviewdb.client.ChangeMessage> getChangeMessages()
public com.google.common.collect.ImmutableListMultimap<com.google.gerrit.reviewdb.client.PatchSet.Id,com.google.gerrit.reviewdb.client.PatchLineComment> getBaseComments()
public com.google.common.collect.ImmutableListMultimap<com.google.gerrit.reviewdb.client.PatchSet.Id,com.google.gerrit.reviewdb.client.PatchLineComment> getPatchSetComments()
protected String getRefName()
getRefName
in class VersionedMetaData
protected void onLoad() throws IOException, org.eclipse.jgit.errors.ConfigInvalidException
VersionedMetaData
onLoad
in class VersionedMetaData
IOException
org.eclipse.jgit.errors.ConfigInvalidException
protected boolean onSave(org.eclipse.jgit.lib.CommitBuilder commit)
VersionedMetaData
onSave
in class VersionedMetaData
protected com.google.gerrit.reviewdb.client.Project.NameKey getProjectName()
getProjectName
in class AbstractChangeNotes<ChangeNotes>