public class ApprovalCopier
extends java.lang.Object
The result of a copy may either be stored, as when stamping approvals in the database at submit time, or refreshed on demand, as when reading approvals from the NoteDb.
Modifier and Type | Method and Description |
---|---|
void |
copyInReviewDb(ReviewDb db,
ChangeNotes notes,
CurrentUser user,
PatchSet ps,
org.eclipse.jgit.revwalk.RevWalk rw,
org.eclipse.jgit.lib.Config repoConfig)
Apply approval copy settings from prior PatchSets to a new PatchSet.
|
void |
copyInReviewDb(ReviewDb db,
ChangeNotes notes,
CurrentUser user,
PatchSet ps,
org.eclipse.jgit.revwalk.RevWalk rw,
org.eclipse.jgit.lib.Config repoConfig,
java.lang.Iterable<PatchSetApproval> dontCopy)
Apply approval copy settings from prior PatchSets to a new PatchSet.
|
public void copyInReviewDb(ReviewDb db, ChangeNotes notes, CurrentUser user, PatchSet ps, org.eclipse.jgit.revwalk.RevWalk rw, org.eclipse.jgit.lib.Config repoConfig) throws com.google.gwtorm.server.OrmException
db
- review database.notes
- change notes for user uploading PatchSetuser
- user uploading PatchSetps
- new PatchSetrw
- open walk that can read the patch set commit; null to open the repo on demand.repoConfig
- repo config used for change kind detection; null to read from repo on demand.com.google.gwtorm.server.OrmException
public void copyInReviewDb(ReviewDb db, ChangeNotes notes, CurrentUser user, PatchSet ps, org.eclipse.jgit.revwalk.RevWalk rw, org.eclipse.jgit.lib.Config repoConfig, java.lang.Iterable<PatchSetApproval> dontCopy) throws com.google.gwtorm.server.OrmException
db
- review database.notes
- change notes for user uploading PatchSetuser
- user uploading PatchSetps
- new PatchSetrw
- open walk that can read the patch set commit; null to open the repo on demand.repoConfig
- repo config used for change kind detection; null to read from repo on demand.dontCopy
- PatchSetApprovals indicating which (account, label) pairs should not be copiedcom.google.gwtorm.server.OrmException