Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get tip changeset of remote Mercurial repository

Tags:

dvcs

mercurial

My .hg/hgrc file has the line:

default = http://some/remote/repository

Is there a quick command to print the tip revision of that repository (which may or may not be inside my local repository)?

like image 344
jhourback Avatar asked Jan 19 '12 17:01

jhourback


2 Answers

You can use the identify command like this:

$ hg identify $(hg paths default)

This is one of the few commands that can operate on a remote repository. If you need more information about the remote repository, then I suggest you take a look at hg incoming.

like image 122
Martin Geisler Avatar answered Sep 25 '22 19:09

Martin Geisler


The following returns the latest changeset number (tip) of a remote repository:

hg identify --id http://www.myrepo.com
like image 25
Kurt Van den Branden Avatar answered Sep 25 '22 19:09

Kurt Van den Branden