BK-IMPORT(1)
π NAME π
Okay bestie, this is bk import(none) from the BitKeeper Userβs Manual β the page about bk import, aka the glow-up move for importing files or changes into a BitKeeper package. π¦
π¦ SYNOPSIS π¦
bk import βtpatch [options] patch destination
bk import βtplain [options] directory destination
bk import βtCVS [options] directory destination
bk import βtMKS [options] directory destination
bk import βtRCS [options] directory destination
bk import βtSCCS [options] directory destination
π DESCRIPTION π
Use bk import to put plain text files, patches (diff βNur), and RCS/CVS files into a BitKeeper package. And yes, in this document RCS means CVS, MKS and RCS β the whole little friend group. π
For file imports (text, SCCS, RCS, etc), bk import does its work outside of your original tree, so your original files stay intact while they get imported into a BitKeeper package. Iconic behavior, honestly. β¨
Patch imports are the only type of import that may be done repeatedly in the same destination package. Periodt.
See below for information specific to the different types of imports. π
π₯ OPTIONS π₯
βCβ Do not commit the ChangeSet.βfβ Force; do not prompt for list editing.βFβ Fast; run more quickly for large imports. NOTICE: use this option only when you know that this is the only BitKeeper activity you are doing. Using this option on two parallel imports may cause BitKeeper consistency problems. no cap, be careful with this one πβggapβ Change or disable the gap used to cluster changeset grouping. A gap of0clusters all changes into one big changeset; a gap of non-zero clusters changes which happen less than that time span apart. The value is in minutes with the default set to10.βHhostnameβ Set the hostname used for the creation of any new deltas during the import.βiβ Prompts for a regular expression to apply to the list of files. All matches are included. (For use with all types except patches.)βlfileβ Use the list of files in file. (For use with all types except patches.)βqβ Be quiet.βSsymβ Add tag sym to the changeset created around the import.βttypeβ Specify import file type. type can be one of:plainβ Import plain text filespatchβ Import a patch (diffs)RCSβ Import RCS filesCVSβ Import CVS files. The only difference fromβtRCSis that Attic directories are processed and deleted files are detected. All RCS options may be used with CVS imports.MKSβ Import MKS Source Integrity files. The files are stripped of theextfield, moved fromrcsdirectories toRCSdirectories, a,vsuffix is added and then the normal RCS processing is applied. All RCS options may be used with MKS imports.SCCSβ Import SCCS files
βvβ Be verbose.βxβ Prompts for a regular expression to apply to the list of files. All matches are excluded. (For use with all types except patches.)
πΈ RCS OPTIONS πΈ
βhβ turn off verification of contents (faster, less safe).βTβ Do not import tags. The default is to import tags.βuβ Run files throughbk undosfirst; this will convert DOS style end of lines to Unix style end of lines.
π PATCH OPTIONS π
βpnumβ Strip the smallest prefix containing num leading slashes from each file name found in the patch file.βrβ Do not do rename processing when doing patch imports.βRβ If a patch fails to apply cleanly, back out the entire operation and exit with a failure.βycommentβ Set the message for the delta comments for all files to<comment>rather than βImport patch PATCHNAME.ββzfuzzβ Control the acceptance of fuzz bybk patchby passing the argumentβFfuzztobk patchrather than the defaultβF0, which indicates strict matching. See thebk help patchman page for further information.
π§ IMPORTING PATCHES π§
BitKeeper can be used to track external work by importing patches (diff βNur) into a BitKeeper package. BitKeeper can help with patch import problems, namely that renames are not tracked well and that there generally arenβt very good comments if any at all attached to the changes being made. π
A rename in a patch is viewed as the deletion of one file and the creation of another file, so to track these, bk import will launch bk renametool which is the graphical tool used to manually match the deleted files with the newly created files. matchmaker era π
π IMPORTING RCS (AND CVS OR MKS) FILES π
The default branch of the RCS tree is the one that will be imported. No other branches are imported, branch imports are on a consulting basis only. All metadata, such as dates, times, user names, checkin comments, and symbolic tags are preserved on import. π
This type of import requires RCS 5.6 or later to be installed on the importing system.
π IMPORTING PLAIN TEXT π
Importing a plain text file into a BitKeeper package can only be done once. If there is already a file in the package that has the same name as a file to be imported the import will fail. one shot only, bestie π«Ά
If a package is already populated with files use the βi, βx or βl options to avoid trying to import files already in the package. Because of the preceding constraints, import does not catch renames with plain text files. If a file has been renamed, it can be imported, but the original file will still exist in the package so it is necessary to remove the original file from the package tree after the import of the renamed file. π¦
Plain text files can be imported from a directory,
bk import /path/to/src_files Λ/package
from a list of files relative to the source directory,
bk import βl/tmp/list /path/to/src_files Λ/package
or by using regular expressions in interactive mode
bk import βix Λ/src_files Λ/package
End patterns with . by itself or EOF
File name pattern to include>> *.c
File name pattern to include>> *.h
File name pattern to include>> Makefile
File name pattern to include>> .
End patterns with . by itself or EOF
File name pattern to exclude>> *.o
File name pattern to exclude>> .
β IMPORTING SCCS FILES β
Teamware and other SCCS files can be imported. The history of the file is preserved, but the unmerged branches are discarded. This is okay because the necessary metadata is in the mainline. π
Importing BitKeeper files is not supported; use bk clone.
π ERROR HANDLING π
Import does not handle all errors in a robust way. If unsuccessful, import may leave work half done in the destination package. It is suggested that the import destination repository is a clone of the original package in case of a failed import. lowkey important, ngl π
π SEE ALSO π
bkβlog, bkβundos
π·οΈ CATEGORY π·οΈ
Repository
π Cute sign-off: source/version is BitKeeper Inc, 1E1 β thatβs the footer vibe, bestie. The date slot is empty in the original footer, so no invented date here. π«Άβ¨
π¦ 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