hg-pull:tldr:c6cd2
The command hg pull
is used in Mercurial, a distributed version control system, to retrieve changesets from a remote repository and incorporate them into the local repository.
When you run hg pull
, Mercurial contacts the remote repository specified by the URL stored in the .hg/hgrc
file or the default remote repository if the URL is not specified. It fetches the new changesets from the remote repository that the local repository does not have and brings them over to the local repository.
This operation only retrieves the changesets and stores them in the local repository without modifying the working directory or merging them with the existing changesets in any way. To actually incorporate these changesets into your working directory, you need to use hg update
after hg pull
.
It is important to note that hg pull
is a safe operation as it does not alter any existing changesets in the local repository. It is commonly used to keep the local repository up to date with the changes made in the remote repository, allowing collaboration and synchronization between different copies of a codebase.