BK-EXPORT(1)

๐Ÿ“ฆ version 7.3.3, in alpine 3.24

๐Ÿ’… 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 from BitKeeper/ subdirectory in exports. ๐Ÿ“
  • โˆ’h โ€” disable patch header. ๐Ÿ™…โ€โ™€๏ธ
  • โˆ’ipat โ€” export only pathnames matching pat pattern (see below). ๐ŸŽฏ
  • โˆ’k โ€” do not expand keywords (default is to expand keywords). ๐Ÿ”‘
  • โˆ’p โ€” do procedural diffs when exporting a patch (see diff(1)). ๐Ÿงต
  • โˆ’rrev โ€” export the tree as of revision rev. ๐ŸŒณ
  • โˆ’T โ€” set gfile modification time to check-in time. โฐ
  • โˆ’ttype โ€” select export format via type:
    • 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 matching pat pattern (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
  • ๐Ÿ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms