I converted my Mercurial repository(in Bitbucket) to git (gitLab), I am wondering that how can I know that no files/comments were missing? How to check if two repositories are the same?
Thanks, Jennifer.
You cannot compare SHA1 hashes between Git and Mercurial (they would be different anyway)
But you can at least script and compare:
git log
(which includes comment) And see if the list has the same number of elements and if the comments matches
For each commit, you can:
hg status --change <rev>
)And make sure each one:
Using a diff tool alone is not enough: you need to do it revision by revision.