BK-CHECK(1)
๐ธ NAME ๐ธ
okay so this page is bk check, and the header up top literally reads bk check(none) from the BitKeeper Userโs Manual โ cute, iconic, no notes. what it does, in one line: check repository for consistency. that's the whole assignment bestie ๐
โจ SYNOPSIS โจ
bk โr check [โacdefgpRvw]
๐ฆ DESCRIPTION ๐ฆ
so check exists to make sure your repository is in a consistent state, and honestly it's giving vibe check for your entire repo. here's the lore: a repository contains files, and each file may have multiple versions. groups of versions are called changesets (csets, for the girlies in a hurry). every cset gets recorded in the ChangeSet file. the ChangeSet file points at the set of deltas in the set of files. there are no back pointers, but the files do record the point at which each cset occurs โ and yeah, there can be multiple deltas in a file that all belong to one cset, and the marker records the cset boundary. iykyk ๐ฅ
since csets propagate between repositories, it is important that the ChangeSet file is correct โ like, main character energy levels of important. bk check is used to make sure nothing has gone wrong (and if it has, it gives you a rough idea of how to fix it). ๐ซถ
currently, the following are checked:
- for each file specified, make sure that deltas marked as recorded in the
ChangeSetfile are recorded in theChangeSetfile. - for each file specified and for each delta of that file which is recorded in the
ChangeSetfile, make sure that the delta exists in the file. - for each file specified, make sure that the file has no unresolved branches.
- make sure that every delta recorded in
ChangeSetfile is in the repository (only with-a).
okay so yes, you can specify a list of files instead of using bk -r to get all of them โ but this is not recommended. ngl, just don't. ๐
๐ OPTIONS ๐
-aโ ensures that theChangeSetfile and the repository agree on what files are in the repository; also ensures that theChangeSetand other files agree on where they are in the repository history timeline. lowkey the big one โญ-cโ checkfileand the per delta checksums. heads up though: only the most recent deltaโs checksum is checked, so if you wanna check all of the checksums, seebk checksum. ๐-dโ provide more details about what is wrong. mainly for debugging. not me reading the extra lore ๐-eโ check for end of line (eoln) inconsistencies in text files. typically used with the-aoption. this will check to make sure that:- the state of the
EOLN_NATIVEflag in each sfile is consistent with what is set in theBitKeeper/etc/configfile (seebk admin). - a
bk fileon a win32 operating system that has theEOLN_NATIVEflag set has the expected line termination:\r\n - a file on a UNIX operating system has the expected line termination:
\n - a file that does not have the
EOLN_NATIVEflag has the expected line termination:\n
- the state of the
-fโ fix any fixable errors. this option will renumber incorrectly numbered revisions, put incorrectly located files where they belong, reconstruct corruptedxflagsmetadata, and add missing changeset backpointers. and bestie, this option is on by default if theauto_fixconfig option is set. ๐-ffโ fix any fixable errors which have destructive fixes. this option will remove any old lineโofโdevelopment (LOD) information except the1.xLOD. > โ ๏ธ destructive means destructive, babe โ it's deleting stuff on purpose. proceed with your whole chest but maybe read twice ๐-gโ list each missing file as the fileโs identifier (root key), but do not produce any other output. typically used as input to thebk gonecommand. โจ-ggโ list each missing delta key, but do not produce any other output. typically used as input to thebk gonecommand. โจโจ-gggโ list both missing files and missing deltas. typically used as input to thebk gonecommand. โจโจโจ the trilogy, ate-pโ list deltas which are in more than one changeset. ๐ฆ-Rโ only do checks which make sense in theRESYNCdir. ๐-vโ be more verbose. each-vadds additional verbosity. with just one,bk checkwill display a progress bar (slay, a progress bar ๐). with two,bk checkwill list each file which is OK. more than two is for debugging only. without the-voption, there is no output if the repository is OK; there is only output if things are broken. silence = good news, fr fr ๐คซ-wโ list files which are writable but not locked. ๐ฅ
๐ SEE ALSO ๐
bkโadmin, bkโchecksum, bkโconfigโetc, bkโgone, bkโlog, bkโxflags
โญ CATEGORY โญ
Repository
and that's the whole page, bestie ๐ซถ this gem was brought to you by BitKeeper Inc, version 1E1, and the page itself goes by bk check(none) โ go forth and have a consistent repository, you've got this ๐โจ๐
๐ฆ 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