{"tool":"hg","tool_display":"Hg","intent":"exclude-files-matching-pattern","intent_display":"exclude files matching pattern","title":"Hg Command: exclude files matching pattern","command_string":"hg status -X <pattern>","raw_command_string":"hg status {{[-X|--exclude]}} {{pattern}}","description":"Exact CLI syntax to exclude files matching pattern using Hg.","usage_scenario":"Omitting temporary files from the status output during code review.","scenario_context":"Omitting temporary files from the status output during code review.","simulated_output":"? excluded_file.txt\n? temp/\n? logs/","how_to_steps":["Run `hg status -X pattern` to exclude files matching the pattern.","Replace `pattern` with the specific file or directory name you want to exclude.","Review the output to see the remaining changes without the excluded files."],"inferred_category":"Version Control","canonical_url":"https://www.syntaxstandard.com/hg/exclude-files-matching-pattern"}