I'm new to Mercurial.
I
initializeda Mercurial project onMachine A,committedmy changes anduploadedthem to a remote repository.Then I
clonedthat repository onMachine B,committedsome additional changes anduploadedthem to the same remote repository.
In both cases, I uploaded the changes with the same command:
hg push https://username:password@domain/user/repository/
Now I'm back on Machine A and I'm not sure how to update my local repository with the last changes I uploaded to the remote repository from Machine B.
The commands hg clone or hg pull look like they might work but I'm not sure.
Would appreciate any guidance. Thanks.
-
Use
hg pull; pull transfers only changesets which are missing in the existing destination repository.
hg clonecreates local copy of a remote repository.See also this so question.
-
hg pullwill transfer any remote changesets not present in your local repo. Afterwards, you'll need to eitherhg updateorhg mergedepending on the presence of local changes.