2025-03-14 21:59:59 -06:00
|
|
|
# hg pull
|
|
|
|
|
|
|
|
|
|
> Pull changes from a specified repository to the local repository.
|
|
|
|
|
> More information: <https://www.mercurial-scm.org/doc/hg.1.html#pull>.
|
|
|
|
|
|
|
|
|
|
- Pull from the "default" source path:
|
|
|
|
|
|
|
|
|
|
`hg pull`
|
|
|
|
|
|
|
|
|
|
- Pull from a specified source repository:
|
|
|
|
|
|
|
|
|
|
`hg pull {{path/to/source_repository}}`
|
|
|
|
|
|
|
|
|
|
- Update the local repository to the head of the remote:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`hg pull {{[-u|--update]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Pull changes even when the remote repository is unrelated:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`hg pull {{[-f|--force]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Specify a specific revision changeset to pull up to:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`hg pull {{[-r|--rev]}} {{revision}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Specify a specific branch to pull:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`hg pull {{[-b|--branch]}} {{branch}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Specify a specific bookmark to pull:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`hg pull {{[-B|--bookmark]}} {{bookmark}}`
|