BK-EXPORT(1)
๐ BK-EXPORT(1) ๐
okay so welcome to the BitKeeper Userโs Manual, bestie โ this is the page for bk export(none), and itโs literally about exporting a patch or a version of a BitKeeper repository. โจ
๐ธ NAME ๐ธ
bk export โ export a patch or version of a BitKeeper repository. ๐ซถ
โจ SYNOPSIS โจ
Two moods, bestie:
bk export โtpatch [โahpST] [โsalias] [โipat] [โxpat] โrr1,r2
bk export โtplain [โakSTvw] [โsalias] [โipat] [โxpat] โrrev to
tiny heads-up: โsalias shows up in the synopsis, but the original OPTIONS list doesnโt give it a separate description. No invented lore here. ๐
๐ฆ DESCRIPTION ๐ฆ
bk export generates a directory tree alongside the BitKeeper repository, and that tree contains checked-out copies of all the files under BitKeeper control. ๐ It can also generate traditional (diff โNur) patches between any two revisions of the source tree. ๐ฅ
By default, bk export only exports user files. Files under the BitKeeper directory are not exported. This behavior can be changed with the โi and โx options. ๐
๐ OPTIONS ๐
โaโ include system files fromBitKeeper/subdirectory in exports. ๐โhโ disable patch header. ๐ โโ๏ธโipatโ export only pathnames matchingpatpattern (see below). ๐ฏโkโ do not expand keywords (default is to expand keywords). ๐โpโ do procedural diffs when exporting a patch (seediff(1)). ๐งตโrrevโ export the tree as of revisionrev. ๐ณโTโ set gfile modification time to check-in time. โฐโttypeโ select export format viatype:plainโ export file in plain text to a directory tree. ๐patchโ export file in gnu patch format. ๐ฉน
โvโ be verbose. ๐ฃ๏ธโwโ make files writable (default is read-only). โ๏ธโxpatโ export all pathnames not matchingpatpattern (see below). ๐ซโsaliasโ appears in the synopsis; no separate description in the original OPTIONS list. ๐ซก
๐ INCLUDE/EXCLUDE PROCESSING ๐
Include and/or exclude patterns may be used to control which files are exported. There may be multiple include and/or exclude patterns. ๐ง The patterns are a file glob the same as used by bk glob. Patterns are matched against the partial pathname from the root of the repository. If the partial pathname matches any of the exclude patterns then the file is skipped. If there are one or more include patterns but the partial pathname does not match any of the include patterns then the file is skipped. Exclude processing takes precedence over include processing. ๐
When exporting patches there can be ambiguity as to which name is used for include/exclude processing because some files may have been moved in the changes implied by the exported patch. The include/exclude processing always applies to any of file names contained in the changes implied by the patch. ๐
For example, suppose you have a file that is currently deleted but at the time of the patch was in src/foo.c. If you told the system to export src/* then the file will be in the set. ๐
๐ SEE ALSO ๐
diff(1), patch(1), bkโglob, bkโrset โ go read those too, bestie. ๐ซถ
๐ท๏ธ CATEGORY ๐ท๏ธ
Compat โ yes, thatโs the category. ๐
okay thatโs the whole page, bestie. Footer shoutout: BitKeeper Inc ยท version 1E1 ยท bk export(none). The original footer doesnโt print a separate date, so no fake date energy 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