cub variant skip
cub variant skip
Skip upstream revisions in every link into a variant
Synopsis
Skip revisions of the upstream units of a variant's links, so merges into the variant pass over them.
The links are the variant's MergeUnits and UpgradeUnit links from units of its space to units a revision names: the units a changeset, tag or release marks -- the end of a range, or its start when the end names none. Revision numbers differ from unit to unit, so they are not accepted here; "cub link skip" takes them. --where narrows the links.
Each revision names one of the upstream unit's revisions, or several:
7 revision 7
ChangeSet:
Each end is a revision as --restore takes one: a number, HeadRevisionNum,
LastReleasedRevisionNum, Tag:
Only MergeUnits and UpgradeUnit links skip revisions: the others take their upstream's head each time. A link skips only revisions it has not merged; one skipped already takes the --reason and --decline given. Skipping the revision just after the link's UpstreamLastMergedRevisionNum moves it past every revision after that one that needs nothing merged.
A merge over the link -- an upgrade, a resolve, an automatic update -- passes over the revisions it skipped, and takes the rest. A promotion of a change order takes its interval whole, skipped revisions too, since it names them. "cub link get" lists the skips, and "cub link unskip" takes them back.
--decline makes a skip final: the link still has not merged the revision, and no merge takes it, not one naming it with --merge-revisions or --revisions, nor a change order whose range holds it. Below the link's pointer it is not listed any more, so skips nobody will act on do not pile up. --decline=false makes it an ordinary skip again, which naming it takes.
Examples:
# Leave a changeset of the base out of web/dev
cub variant skip web/dev ChangeSet:web-base/experiment --reason "not for dev"
# And decline it: dev will never take it
cub variant skip web/dev ChangeSet:web-base/experiment --decline
cub variant skip <variant> <revision>... [flags]
Options
--decline make the skips final: no merge takes them, not even one naming them, and below the pointer they are not listed; --decline=false makes them ordinary skips again
--dry-run report what the command would write, and write nothing
-h, --help help for skip
--include-hidden string[="*"] Also select hidden entities, to list or to act on: those hidden for the given HiddenReasons, comma-separated, as in --include-hidden=BackingUnit, or for any reason but Archived when given no value or "*". ConfigHub/YAML Units, which hold the configuration of other entities, are hidden with the reason BackingUnit. Archived entities are selected only when the reasons name Archived, as in --include-hidden=Archived or --include-hidden='*,Archived'. A --where naming entities by Slug or ID lists them whether hidden or not, but a bulk operation acts on archived ones only when --include-hidden names Archived
-o, --output string Output format. One of: json, yaml, name, wide, mutations, jq=<expr>, yq=<expr>, custom-columns=<spec>
--quiet No default output.
--reason string why the revisions are skipped, shown with them by cub link get
--verbose Detailed output, additive with default output
--where string Filter expression using SQL-inspired syntax. Supports conjunctions with AND. String operators: =, !=, <, >, <=, >=, LIKE, NOT LIKE, ILIKE, ~~, !~~, ~, ~*, !~, !~*. Pattern matching with LIKE/ILIKE uses % and _ wildcards. Regex operators (~, ~*, !~, !~*) support POSIX regular expressions. A related entity is referenced by prefix, as in "UpstreamUnit.Slug = 'base'"; when the reference names a list, a * segment matches any element, as in "FromLink.*.Slug = 'upgrade-app'". Examples: "Slug LIKE 'app-%'", "DisplayName ILIKE '%backend%'", "Slug ~ '^[a-z]+-[0-9]+$'". 'cub <entity> explain --where' lists the attributes an entity's expressions can name
Options inherited from parent commands
--context string The context to use for this command
--debug Debug output
SEE ALSO
- cub variant - Variant commands