BK-UNDO(1)
🎀 bk undo — BitKeeper User’s Manual 🎀
okay so we’re in the <pink>(none)</pink> manual section, bestie, and this page is all about bk undo — the BitKeeper User’s Manual icon we’re covering today 💖✨
🌸 NAME 🌸
bk undo — undo a changeset or set of changesets 💅
✨ SYNOPSIS ✨
bk undo [−fqSsv] [−arev] [−rrev]
that’s the whole invocation vibe, no cap 🫶
🦋 DESCRIPTION 🦋
okay so the <hotpink>bk undo</hotpink> command can be used to remove any changeset or set of changesets. There are options to select specific changesets or all changesets after some point — which is what bk clone −r uses 👑
To undo a bk pull use bk unpull 💖
⚠️ WARNING ⚠️
bestie, listen: with one exception, the changes removed by an undo cannot be restored. Use bk undo with care — if the data was only present in your repository, when you undo it, it is gone for good 💀
If the −s option is not present then bk undo saves a normal BitKeeper patch in BitKeeper/tmp/undo.patch. Only the most recent undo is saved there, i.e., the patch is overwritten each time bk undo is run. To restore the patch try this:
bk takepatch ‐vvvaf BitKeeper/tmp/undo.patch
There is a shorthand, bk repatch, which is an alias for the above command. The bk repatch command can take an optional argument which specifies an alternate patch to reapply 🫶
💅 OPTIONS 💅
−arev— remove all changesets which occurred after rev. If rev is what you want to have be top of trunk, use this option 👑−f— force the undo to complete if it can. Normally, undo will prompt with a list of deltas which will be removed 💪−−force−unpopulate— if the undo results in a component being removed, undo will first check that the component can be found in a gate. Use this option to disable the gate check and just remove the component 🚪−q— run quietly; do not list files 🤫−rrevs— remove the list of changesets specified by revs. revs must be of the formr1,r2,r3, etc. and can be either the changeset number or the changeset key. Seebk help termsfor more information 🔑−s— do not save undone changes as a patch 🚫−v— when prompting with the list of changes to be undone be verbose and list not only the changes but the deltas in each file in each changeset 🗣️
🌈 SEE ALSO 🌈
go peek at: bk‐makepatch, bk‐pull, bk‐stripdel, bk‐takepatch, bk‐terms, bk‐unpull 🦋
🍓 CATEGORY 🍓
Repository 🎀
okay that’s the whole page, bestie — signed off by BitKeeper Inc, version 1E1, footer/date line bk undo(none) 🫶✨💖
📦 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