felipec / git-remote-hg

Transparent bidirectional bridge between Git and Mercurial for Git
GNU General Public License v2.0
369 stars 87 forks source link

How can I find the hg revision number of a commit? #8

Closed jck closed 10 years ago

jck commented 10 years ago

Sometimes, I need to add a reference to a previous commit in the current commit message. Is there a way to find the hg revision number(not sha hash) without having to create a new working directory for the hg clone?

fingolfin commented 10 years ago

Note that hg revision numbers are not consistent across clones, so if you want to reference a previous commit, it might actually be better to use the SHA-1 for that.

jck commented 10 years ago

Oh, I was not aware of that. Thanks!