How to use MercurialEclipse plugin

The MercurialEclipse plugin brings support for Mercurial to Eclipse.

  • To install it, go to Help -> Install New Software and add the URL:

  • I usually manage Mercurial from the shell. To enable Mercurial support for an existing project that is placed in a Mercurial repository is easy. Click on the project in Project Explorer, choose Team -> Share Project. Click on Mercurial and click Next. Choose Use existing repository in parent directory. Check if the path in Selected Repository is correct. Click Finish.

  • When Mercurial support is working, you can see that the directories and files shown in Project Explorer have icon overlays that indicate their modified or committed status.

  • Almost all the Mercurial operations can be accessed by clicking on the project or file in Project Explorer and choosing Team. Its a bit confusing that this is not named something appropriate like Mercurial or Hg or even version control.

  • To view the history log of the project, choose Team -> Show History. The History window is shown at the bottom of Eclipse. To enable viewing the graph of changes, click on the Show Parent History button in this window.

  • To view the uncommitted changes of a file as a side-by-side diff with its parent revision, click on the file and choose Compare With.

  • Other basic operations of this plugin are described in this page.

Tried with: MercurialEclipse 2.1.0, Eclipse Luna 4.4.1 and Ubuntu 14.04

One thought on “How to use MercurialEclipse plugin

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.