gitgitlabmercurialchangesethg-git

How to map hg changeset with git changeset after converting?


I converted my repositories from Mercurial to Git (pulled from Bitbucket(hg, Mercurial), pushed to GitLab (git)), I found that after converting from hg to git, in GitLab now, the changeset number has been changed.

I am wondering that how can I map the old hg changeset number to the new git changeset number? Is there an algorithm to do this?

Thanks, Jennifer.


Solution

  • no, there is no such algorithm

    the only possible way would be to keep both repositories related, e.g. by using hggit plugin, which maintains a map of the relation between the 2 and also keeps open the chance to pull/push across them