![Forrest logo](/images/logo.png)
hg-log:tldr:5e26c
hg-log: Display the revision history for a specific branch.
$ hg log --branch ${branch}
try on your machine
This command is a Mercurial (Hg) command used to display the commit history of a specific branch named ${branch}.
Here's a breakdown of the command:
hg log
: This is the main command to view the commit history in Mercurial. It displays a list of all the commits made in the repository.--branch
: This is an option used to filter the commit history based on a particular branch. It allows you to limit the log output to only show the commits from a specified branch.${branch}
: This is a placeholder indicating that you should replace it with the actual name of the branch you want to view the commit history for. For example, if you have a branch named "feature-branch", you would substitute${branch}
with "feature-branch".
When you execute this command, it will show you the commit history for the specified branch, including information like the commit hash, author, timestamp, commit message, and any related changesets.
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.