BK-RENAMETOOL(1)

πŸ“¦ version 7.3.3, in alpine 3.24

Okay bestie, welcome to bk renametool β€” straight outta the BitKeeper User’s Manual β€” the graphical tool for finding renames. It’s giving β€œtiny detective UI for your patch” and I’m obsessed. ✨

πŸ’– NAME πŸ’–

bk renametool β€” graphical tool for finding renames. No cap, that’s the whole vibe. πŸŽ€

🌈 SYNOPSIS 🌈

bk renametool < filelist

πŸ¦‹ DESCRIPTION πŸ¦‹

The bk renametool command is a graphical interface for finding renames. It gets invoked automatically by the bk import command when you’re importing patches. 🫢

The purpose of this tool is to maintain revision history across file renames. A repository managed entirely by BitKeeper manages revision history across file renames. But a system managed by BitKeeper that imports traditional patches (i.e. diff βˆ’Nur) needs a little help, because patches do not directly record renames. 😭

Conceptually, a patch rename is seen as a deletion of one file and a creation of another file. When BitKeeper imports a patch, it detects the set of created and deleted files. Those files are then fed to bk renametool, where you get the chance to find files that are actually renames and record that information. Literally matchmaking for files. πŸ’…

When bk renametool starts up, you’re looking at several text windows. The goal is to match up files in the create window with files in the delete window. You can click on files in each window and the tool will show you diffs. When you find two files you think are the same, you can click the rename button to rename them and remove them from the lists. The guess button tries to find matches for you based on the basename of the files. When you click on a created file, the guess button is invoked once automatically. You can click on the guess button again to find the next potential match. πŸ”₯

After you’ve matched up every file there is to match up, click create all and delete all to finish up any stragglers, and then click apply. Slay. βœ…

πŸŽ€ BINDINGS πŸŽ€

  • Home β€” Scroll both diff windows to the top
  • End β€” Scroll both diff windows to the bottom
  • PageUp β€” Scroll both diff windows one screen up
  • PageDown β€” Scroll both diff windows one screen down
  • UpArrow β€” Scroll both diff windows one line up
  • DownArrow β€” Scroll both diff windows one line down
  • LeftArrow β€” Scroll both diff windows to the left
  • RightArrow β€” Scroll both diff windows to the right

These bindings are the same as clicking the associated buttons:

  • SPACE, n β€” Next diff
  • a β€” Apply the actions in the Resolved files window
  • C β€” Create all files in the Created files window
  • c β€” Create the highlighted file in the Created files window
  • D β€” Delete all files in the Deleted files window
  • d β€” Delete the highlighted file in the Deleted files window
  • g β€” Guess what the match might be
  • h β€” Show history of the highlighted file in the Deleted files window
  • p β€” Previous diff
  • Controlβˆ’q β€” Quit without applying any changes
  • r β€” Rename the two marked files
  • u β€” Undo the highlighted file in the Resolved files window

🌸 SEE ALSO 🌸

  • bk‐config‐gui
  • bk‐renames

πŸ‘‘ CATEGORY πŸ‘‘

GUI‐tools β€” that’s the category, periodt. πŸ’œ

Cute sign-off: brought to you by BitKeeper Inc, footer tag 1E1, page bk renametool(none) β€” byeee bestie πŸ’–πŸ¦‹

πŸ“¦ 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