Skip to content

cub link skip

Skip upstream revisions, so merges over a link pass over them

Synopsis

Skip revisions of a link's upstream unit, so merges over the link pass over them.

Each revision names one of the upstream unit's revisions, or several:

7 revision 7 ChangeSet: the revisions of a changeset Tag: the revision the tag marks .. the revisions after , up to and including , as with git: 5..7 is revisions 6 and 7

Each end is a revision as --restore takes one: a number, HeadRevisionNum, LastReleasedRevisionNum, Tag:, ChangeSet:, Release:, or Revision:, any of them prefixed with Before:. A bare slug is a 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:

  # Skip a changeset of the upstream, saying why
  cub link skip --space web-dev upgrade-backend ChangeSet:web-base/experiment --reason "not for dev"

  # Skip two revisions, and decline them: they will never be taken
  cub link skip --space web-dev upgrade-backend 7 9 --decline

  # List them again
  cub link skip --space web-dev upgrade-backend 7 9 --decline=false
cub link skip <link> <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
  -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

Options inherited from parent commands

      --component string   the Component of --variant, when that names the variant alone; --variant <component>/<variant> says the same in one flag
      --context string     The context to use for this command
      --debug              Debug output
      --space string       space to operate in, by slug or UUID. Omitted, a list or bulk operation spans the organization and a single entity is named as <space>/<slug>; "*" means the same as omitting it
      --variant string     variant to operate in, as <component>/<variant>, or as <variant> with --component: the space naming that Component whose Variant label is <variant>. The same scope as --space, named by what it is rather than by the space's slug; the two cannot be combined

SEE ALSO