Documentation
¶
Index ¶
Constants ¶
View Source
const ( TagCancel = 0 TagSingleton = 1 TagPropagating = 2 )
Variables ¶
This section is empty.
Functions ¶
func AddTag ¶
AddTag creates a control artifact that adds or cancels a tag on a target checkin. It stores the artifact as a blob, ensures the tag name exists in the tag table, and inserts/replaces a row in the tagxref table.
func ApplyTag ¶
ApplyTag inserts a tagxref row and propagates without creating a control artifact. Used by Crosslink to process existing control artifacts.
func ApplyTagWithTx ¶
ApplyTagWithTx inserts a tagxref row and propagates using an existing transaction. This avoids the nested-transaction problem when called from within Rebuild's single wrapping transaction. Identical logic to ApplyTag but accepts a db.Querier.
Types ¶
type ApplyOpts ¶
type ApplyOpts struct {
TargetRID libfossil.FslID // Artifact to tag.
SrcRID libfossil.FslID // Control artifact that introduced this tag (0 for inline T-cards).
TagName string
TagType int // TagCancel, TagSingleton, or TagPropagating.
Value string
MTime float64 // Julian day.
}
ApplyOpts describes a tag application from an existing control artifact.
Click to show internal directories.
Click to hide internal directories.