Forrest logo
back to the hg tool

hg-log:tldr:ec231

hg-log: Display the revision history, excluding file names that match a specified pattern.
$ hg log --exclude ${pattern}
try on your machine

The command "hg log --exclude ${pattern}" is used with the Mercurial version control system to retrieve a log of the project's revision history while excluding specific patterns.

  • "hg log" is the base command to view the revision history (log) of a Mercurial repository.

  • "--exclude" is an option or flag that specifies that certain patterns should be excluded from the log.

  • "${pattern}" is a placeholder for the specific pattern or regular expression you want to exclude from the log. You need to replace "${pattern}" with your desired pattern.

When executed, this command will generate the revision history log, excluding any revisions that match the specified pattern. The pattern can be used to filter out specific files, directories, or revisions based on their names or properties.

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