![Forrest logo](/images/logo.png)
hg-status:tldr:27135
The hg status
command is used in Mercurial, a distributed version control system, to display the status of files in a repository. It shows the changes made to files and their status in relation to the repository.
The command provides information about whether a file has been modified, deleted, or added, and whether it is included or not in the repository. It also gives details about files that have unresolved merges and conflicts.
Different status codes are used to represent different file statuses. Some common codes include:
M
(modified) indicates that the file has been modified.A
(added) shows that the file has been added to the repository.R
(removed) shows that the file has been deleted or removed.C
(clean) indicates that the file is clean and has no changes.!
(missing) signifies that the file is missing.
Running hg status
in the command line will provide a list of files along with their status codes, allowing a user to quickly see the current state of the repository and the differences between the current working directory and the repository.