2025-03-14 21:59:59 -06:00
|
|
|
# hg log
|
|
|
|
|
|
|
|
|
|
> Display the revision history of the repository.
|
|
|
|
|
> More information: <https://www.mercurial-scm.org/doc/hg.1.html#log>.
|
|
|
|
|
|
|
|
|
|
- Display the entire revision history of the repository:
|
|
|
|
|
|
|
|
|
|
`hg log`
|
|
|
|
|
|
|
|
|
|
- Display the revision history with an ASCII graph:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`hg log {{[-G|--graph]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Display the revision history with file names matching a specified pattern:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`hg log {{[-I|--include]}} {{pattern}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Display the revision history, excluding file names that match a specified pattern:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`hg log {{[-X|--exclude]}} {{pattern}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Display the log information for a specific revision:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`hg log {{[-r|--rev]}} {{revision}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Display the revision history for a specific branch:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`hg log {{[-b|--branch]}} {{branch}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Display the revision history for a specific date:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`hg log {{[-d|--date]}} {{date}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Display revisions committed by a specific user:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`hg log {{[-u|--user]}} {{user}}`
|