BK-CLONE(1)
π bk clone β BitKeeper Userβs Manual π
section (none), bestie β yes, thatβs the manual-name situation. This page is for bk clone, and itβs giving βcopy the whole packageβ energy with full repo-brain. π«Ά
β¨ NAME β¨
bk clone β create a new copy of a package. Thatβs the mission statement, periodt. π
πΈ SYNOPSIS πΈ
bk clone [-q] [-rrev] [more opts] from [to]
π¦ DESCRIPTION π¦
okay so clone copies from the from repository and creates a copy at to. If to is not specified, then the basename of from is the implied destination. Cute, efficient, no notes. π
This works for fully and partially specified pathnames as well as BitKeeper URLs. See bk help url for further naming information. iykyk. π
If bam_url is specified, it tells the destination repository what to use as a BAM server. Normally a new repository inherits the BAM server URL from the source repository. This argument is required when cloning a BAM server to a BKD. required, not optional, bestie. π₯
If rev is specified, the cloned repository will include only changesets up to and including rev. Slay, partial clone. β
The cloned repository remembers from which repository it was cloned. The from repository is known as the βparent,β while the newly cloned repository is known as the βchild.β family tree behavior, honestly. π
Subsequent updates to the child can be done by running bk pull. Changes made in the child can be pushed back into the parent by running bk push. main character repo energy fr fr.
π NOTE π
Only completed changesets are cloned. Any pending deltas are removed from the child before the clone completes. no half-finished vibes allowed. π
On recent (2014) versions of Ubuntu (and other Linux distributions), the use of hardlinks has been curtailed for security reasons. clone will fall back to using copies, see http://man7.org/linux/man-pages/man5/proc.5.html and search for protected_hardlinks. Using copies instead of links is slower and takes more disk space so you may want to disable this security feature if all of your users are trusted. π«Ά
π OPTIONS π
-@base_urlβ Use a local repository as a baseline for the clone so that only the changes need to be transferred from a remote location. big βdonβt resend the whole thingβ energy. β¨-Burlβ Set the BAM server url to url in the destination repository.--checkout=modeβ Override any previous setting for the checkout mode. Valid values for mode arenone,get, oredit. Note that this mode becomes "sticky" in that the checkout mode will be added tobk root/BitKeeper/log/config. If no other config overrides that, then this mode will "stick" for subsequent updates. sticky config, but make it fashion. π--downgradeβ By default, new clones will use the same storage format as the repository being cloned. This option forces the new clone to use the older, backwards compatible format (at the cost of lower performance). older format, lower performance, but backwards compatible. periodt.-Eenv=valβ Export an environment variable to thebkdrunning in the remote BitKeeper repository. Typically used to pass information to remote triggers. Only variables with the prefixBKU_are allowed. no random env vars, bestie. π-jjobsβ Set the level of parallelism for the unpacking and checking out of files. get those jobs going. β--no-hardlinksβ Clone normally uses hard links whenever it can. This option will prevent this and is useful to create an archive of a repository that copies every file. archive girlies rise. π--parentsβ Instead of setting the parent to the from url, use fromβs parents. Useful when you want to pull from/push to the same places as from. inherited parent drama, but useful. π-qβ Run quietly. shhh. π€«-rrevβ Clone the repository up to and including cset rev. A changeset number or changeset key can be used to specify rev. Seebk help termsfor more information. cset language, got it. π--upgradeβ By default, new clones will use the same storage format as the repository being cloned. This option forces the new clone to upgrade to the latest storage format. Inbk-6.0, the storage format was changed to support higher performance. newer format, higher performance, slay. π₯
π SEE ALSO π
bk-aliasbk-bambk-bkdbk-parentbk-pullbk-pushbk-relinkbk-termsbk-triggersbk-url
π CATEGORY π
- Common
- Repository
source: BitKeeper Inc Β· version: 1E1 Β· date: not listed in the footer, bestie Β· page: bk clone(none) β xoxo, thatβs the whole footer. π
π¦ where this page comes from
- alpine 3.24: bitkeeper-doc 7.3.3-r1 Β· Apache-2.0
- Copyright (c) 1998-2015 BitKeeper Inc
- Copyright (C) 1989, 1990, 1991, 1992, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms