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
public static class CommitRewriter.RunOptions extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description boolean
dryRun
Whether to rewrite the commit history or only find refs that need to be fixed.int
maxRefsInBatch
Max number of refs to update in a singleBatchRefUpdate
.int
maxRefsToUpdate
Max number of refs to fix by a singleCommitRewriter.RefsUpdate
run.boolean
outputDiff
Whether to compute and output the diff of the commit history for the backfilled refs.boolean
verifyCommits
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 Constructor Description RunOptions()
-
-
-
Field Detail
-
dryRun
public boolean dryRun
Whether to rewrite the commit history or only find refs that need to be fixed.
-
verifyCommits
public boolean verifyCommits
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)
.
-
outputDiff
public boolean outputDiff
Whether to compute and output the diff of the commit history for the backfilled refs.
-
maxRefsInBatch
public int maxRefsInBatch
Max number of refs to update in a singleBatchRefUpdate
.
-
maxRefsToUpdate
public int maxRefsToUpdate
Max 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.
-
-