1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/hg-log.md

37 lines
887 B
Markdown
Raw Normal View History

2018-01-18 07:15:11 +00:00
# hg log
> Display the revision history of the repository.
> 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:
`hg log {{[-G|--graph]}}`
2018-01-18 07:15:11 +00:00
- Display the revision history with file names matching a specified pattern:
`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:
`hg log {{[-X|--exclude]}} {{pattern}}`
2018-01-18 07:15:11 +00:00
- Display the log information for a specific revision:
`hg log {{[-r|--rev]}} {{revision}}`
2018-01-18 07:15:11 +00:00
- Display the revision history for a specific branch:
`hg log {{[-b|--branch]}} {{branch}}`
2018-01-18 07:15:11 +00:00
- Display the revision history for a specific date:
`hg log {{[-d|--date]}} {{date}}`
2018-01-18 07:15:11 +00:00
- Display revisions committed by a specific user:
`hg log {{[-u|--user]}} {{user}}`