hg-log:tldr:469d5
hg-log: Display the revision history with file names matching a specified pattern.
$ hg log --include ${pattern}
try on your machine
The command "hg log --include ${pattern}" is used in the Mercurial version control system to display a log of revision history that matches a specific pattern.
Here is a breakdown of the command components:
- "hg log": This is the basic command to view the revision history in Mercurial.
- "--include": This option is used to filter the log entries and include only those that match a specific pattern.
- "${pattern}": This is a placeholder for the actual pattern you want to use. You will replace this with the desired pattern when running the command.
When you run this command, Mercurial will display the revision history with only the entries that match the provided pattern. The pattern can include file names, directories, or path specifications to narrow down the log output to specific files or folders.
For example, if you want to see the log only for files starting with "foo" in the current directory, you would run the command: "hg log --include foo*". This would display the revision history of all the files that start with "foo".
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.