Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Determining 'active' changeset with Mercurial?

Tags:

mercurial

If you have changesets A, B, C, D, E in your repo and you execute hg update -c D, how can you confirm that your repo is currently 'active' with changeset D? If we run hg tip or hg head, HG lists E and not D.

like image 341
Marcus Leon Avatar asked Jun 08 '12 13:06

Marcus Leon


People also ask

What is Mercurial changeset?

A changeset (sometimes abbreviated "cset") is an atomic collection of changes to files in a repository. It contains all recorded local modification that lead to a new revision of the repository. A changeset is identified uniquely by a changeset ID. In a single repository, you can identify it using a revision number.

How do you pull in Mercurial?

Pull changes from the Mercurial upstream (Pull)From the main menu, choose Hg | Mercurial | Pull. Specify the required URL address of the source remote repository.

How do I check my Mercurial version?

If you already have Mercurial installed, make sure you have version 1.7 or later. To check, enter hg --version at the command line.


1 Answers

There are several ways to find this out:

  • hg summary
  • hg identify
  • hg log -r .

Note that hg update actually changes the revision of your working copy, so you definitely should not use that.

like image 180
Tim Henigan Avatar answered Oct 23 '22 07:10

Tim Henigan