Package com.google.gerrit.server.notedb
Class CommitRewriter.RunOptions
java.lang.Object
com.google.gerrit.server.notedb.CommitRewriter.RunOptions
- All Implemented Interfaces:
Serializable
- Enclosing class:
- CommitRewriter
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionboolean
Whether to rewrite the commit history or only find refs that need to be fixed.int
Max number of refs to update in a singleBatchRefUpdate
.int
Max number of refs to fix by a singleCommitRewriter.RefsUpdate
run.boolean
Whether to compute and output the diff of the commit history for the backfilled refs.boolean
Whether to verify that resulting commits contain user data for the accounts that are linked to a change, seeCommitRewriter.verifyCommit(java.lang.String, org.eclipse.jgit.lib.PersonIdent, java.util.Collection<com.google.gerrit.server.account.AccountState>)
,CommitRewriter.collectAccounts(com.google.gerrit.server.notedb.ChangeNotes)
. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
dryRun
public boolean dryRunWhether to rewrite the commit history or only find refs that need to be fixed. -
verifyCommits
public boolean verifyCommitsWhether to verify that resulting commits contain user data for the accounts that are linked to a change, seeCommitRewriter.verifyCommit(java.lang.String, org.eclipse.jgit.lib.PersonIdent, java.util.Collection<com.google.gerrit.server.account.AccountState>)
,CommitRewriter.collectAccounts(com.google.gerrit.server.notedb.ChangeNotes)
. -
outputDiff
public boolean outputDiffWhether to compute and output the diff of the commit history for the backfilled refs. -
maxRefsInBatch
public int maxRefsInBatchMax number of refs to update in a singleBatchRefUpdate
. -
maxRefsToUpdate
public int maxRefsToUpdateMax number of refs to fix by a singleCommitRewriter.RefsUpdate
run. Since the second run on the same set of refs is a no-op, running with this option in a loop will eventually fix all refs. The number of executedBatchRefUpdate
depends onmaxRefsInBatch
option.
-
-
Constructor Details
-
RunOptions
public RunOptions()
-