Forrest logo
back to the hg tool

hg-status:tldr:7e478

hg-status: Display only deleted (but tracked) files.
$ hg status --deleted
try on your machine

The command "hg status --deleted" is used in the Mercurial version control system to list all the files that have been deleted in the working directory or have been scheduled for deletion.

Here is an explanation of each part of the command:

  • "hg" stands for Mercurial, the version control system.
  • "status" is the command used to display the status of files in the repository.
  • "--deleted" is an option or argument passed to the "status" command. It specifies that only the deleted files should be shown.

When you run this command in the command-line interface or terminal within a Mercurial repository, it will produce a list of files that have been deleted, marked with the letter "D" in the output. This information can be useful to see what files have been removed from the repository's history and are no longer tracked.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the hg tool