david
david

Reputation: 580

Updating a mercurial repo that is already cloned to my machine

I have a mercurial repo on two different VMs and worked on the repo on one of the machines and pushed the changes back to the online repo. Is there a way to update the repo on my second VM without re-cloning the repo?

I tried hg update but that did not work.

EDIT: I figured it out.

Upvotes: 1

Views: 65

Answers (1)

Pablo Santa Cruz
Pablo Santa Cruz

Reputation: 181450

You need to use hg pull to pull from the online repo.

Provided this is what you did on the first VM:

$ hg ci
$ hg push http://path_to_online_repo

This is what you need on the second VM:

$ hg pull http://path_to_online_repo
$ hg update

Upvotes: 3

Related Questions