BK-EDIT(1)
π BK-EDIT(1) π
okay so bestie, welcome to the bk edit(none) page β itβs from the BitKeeper Userβs Manual, and it is literally about checking out a file for editing. no cap. π
β¨ NAME β¨
bk edit β check out a file for editing. π
π¦ SYNOPSIS π¦
bk edit [βq] [βrrev] [file ... | β]
πΈ DESCRIPTION πΈ
If a file is not locked for writing β i.e., it is not visible in a directory listing or it is read-only β then use bk edit to check out the file and lock it, making it available for writing. slay. π
bk edit with no options will check out all files in a directory. periodt. β¨
π OPTIONS π
βqβ run quietly. shhh π€«βrrevβ Edit the file, rolling it back to the contents specified byrev. (Or key or changeset revision. Seebk help termsunder βrev argumentβ.) BitKeeper will check out the tip revision combined with a set of include and exclude deltas needed to produce the requested revision.
π§ NOTES π§
okay so it may seem like this step could be done with a simple
$ chmod +w foo.c
but that is not correct. bestie, the reason is keyword expansion. Keywords are expanded only in read-only files; they are unexpanded in locked files. For example, if a file contains %M% %I%, when it is not locked that will look like foo.c 1.2. If the file is modified after the chmod then the keywords will forever more be foo.c 1.2, which is not likely to be the desired result. π
One could argue that BitKeeper should try and catch this case (and it does β bk check will frequently fix it), but it is impossible to do so correctly in all cases. lowkey tragic, but fr fr. π
π SEE ALSO π
bkβterms
π CATEGORY π
FileCommon
source/version/date footer vibes: BitKeeper Inc Β· 1E1 Β· bk edit(none) β mwah ππ«Άβ¨
π¦ 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