Search code examples
gitmercurialgit-loghg-log

Can Mercurial (Hg) show me what remote a branch or a commit is from?


I have a Mercurial (Hg) repository with 2 remotes, let's call them default and upstream.

I have pulled from both remotes and would like to know which commits/branches came from the remote called default and which commits/branches came from the remote called upstream. How do I achieve this in Hg?

Ideally I would like to use the hg log command much like I use the git log --describe --all command which I'm more familiar with.

Is there a template for the hg log command that is equivalent to git log --describe?

Note: I'm already aware of using hg out <remote> to show me what set of commits is not available on the remote I'm interested in, but I was hoping for something a little more visual.


Solution

  • Without giant changes in standard HG-workflow (assumed in another extension, remotenames), in default style, you can add Remote Branches Extension to your Mercurial