reparent

vb reparent [OPTIONS] CHECK-IN PARENT ...

Description

Create a parent tag that causes CHECK-IN to be interpreted as a child of PARENT. If multiple PARENTs are listed, then the first is the primary parent and others are merge ancestors.

This is an experts-only command. It is used to patch up a repository that has been damaged by a shun or that has been pieced together from two or more separate repositories. You should never need to reparent during normal operations.

Reparenting is accomplished by adding a parent tag. So to undo the reparenting operation, simply delete the tag.

Options

--test

Make database entries but do not add the tag artifact. So the reparent operation will be undone by the next vb rebuild command.

-n, --dry-run

Print the tag that would have been created but do not actually change the database in any way.

--date-override DATETIME

Set the change time on the control artifact

--user-override USER

Set the user name on the control artifact

Examples

  • Show the parent of current version

$ vb info --key parent
parent:       271964ffabf52283075426d38e90dbf9763895e9 2026-02-13 02:51:12 UTC
  • Set the parent to version 98ca2c6829

$ vb reparent current 98ca2c6829
$ vb info --key parent
parent:       98ca2c682939ba950bb4558e16817c0e7f61ad46 2026-02-13 02:50:08 UTC