2018-01-18 07:15:11 +00:00
|
|
|
# hg log
|
|
|
|
|
|
|
|
> Display the revision history of the repository.
|
2019-06-03 02:06:36 +02:00
|
|
|
> More information: <https://www.mercurial-scm.org/doc/hg.1.html#log>.
|
2018-01-18 07:15:11 +00:00
|
|
|
|
|
|
|
- Display the entire revision history of the repository:
|
|
|
|
|
|
|
|
`hg log`
|
|
|
|
|
|
|
|
- Display the revision history with an ASCII graph:
|
|
|
|
|
2025-04-25 14:45:48 +03:00
|
|
|
`hg log {{[-G|--graph]}}`
|
2018-01-18 07:15:11 +00:00
|
|
|
|
|
|
|
- Display the revision history with file names matching a specified pattern:
|
|
|
|
|
2025-04-25 14:45:48 +03:00
|
|
|
`hg log {{[-I|--include]}} {{pattern}}`
|
2018-01-18 07:15:11 +00:00
|
|
|
|
|
|
|
- Display the revision history, excluding file names that match a specified pattern:
|
|
|
|
|
2025-04-25 14:45:48 +03:00
|
|
|
`hg log {{[-X|--exclude]}} {{pattern}}`
|
2018-01-18 07:15:11 +00:00
|
|
|
|
|
|
|
- Display the log information for a specific revision:
|
|
|
|
|
2025-04-25 14:45:48 +03:00
|
|
|
`hg log {{[-r|--rev]}} {{revision}}`
|
2018-01-18 07:15:11 +00:00
|
|
|
|
|
|
|
- Display the revision history for a specific branch:
|
|
|
|
|
2025-04-25 14:45:48 +03:00
|
|
|
`hg log {{[-b|--branch]}} {{branch}}`
|
2018-01-18 07:15:11 +00:00
|
|
|
|
|
|
|
- Display the revision history for a specific date:
|
|
|
|
|
2025-04-25 14:45:48 +03:00
|
|
|
`hg log {{[-d|--date]}} {{date}}`
|
2018-01-18 07:15:11 +00:00
|
|
|
|
|
|
|
- Display revisions committed by a specific user:
|
|
|
|
|
2025-04-25 14:45:48 +03:00
|
|
|
`hg log {{[-u|--user]}} {{user}}`
|