Fossil User Forum

Removing Commands or Webpages from Fossil.
Login

Removing Commands or Webpages from Fossil.

Removing Commands or Webpages from Fossil.

(1) By anonymous on 2025-03-27 10:53:59 [link] [source]

If I want to remove existing Fossil commands or webpages to create a customised version of Fossil, can I simply delete the C code page for the command or webpage, recompile Fossil, and expect it to not break anything else? The reason for removing existing commands or webpages may be to replace them with modified, differently named commands/webpages or to stop users using commands or webpages that are not required.

(2.1) By Stephan Beal (stephan) on 2025-03-27 11:00:10 edited from 2.0 in reply to 1 [source]

If I want to remove existing Fossil commands or webpages to create a customised version of Fossil, can I simply delete the C code page for the command or webpage, recompile Fossil, and expect it to not break anything else?

You don't need to remove the code, just the "COMMAND:" or "WEBPAGE:" marker from the comments above the code (or just add an "x" to the start of each, or similar). That would work for most commands, but a small number of them call each other.

For web pages it's not quite that simple: removing pages does not stop fossil from generating links to those pages at random places around the UI. If you don't find and remove all such links, you risk a lot of dead links in the UI.