On Sun, 8 May 2016 at 01:48 Martin Panter <vadmium+py@gmail.com> wrote:
On 8 May 2016 at 08:08, Senthil Kumaran <senthil@uthcode.com> wrote:
> Brett and I discussed that we might need a way to verify if two repos, hg
> and git repos are same (that's have the same graph) as we undertake this
> process. I don't know any offhand comparison commands, but I assume it
> should be possible. I plan to add that to that tool.

One starting point that comes to mind is to compare the number of
revisions (including all merges and merged revisions) for each branch,
tag, etc. With Git you can do it like:

$ git rev-list --count master

I don’t know what the equivalent command in Mercurial is. Perhaps you
could clone the relevant branch to a fresh repository and check the
numerical revision number.

SO to the rescue (and Martin is right about how to figure it out): http://stackoverflow.com/questions/16672788/total-count-of-change-sets-for-mercurial-and-git

Senthil has also suggested verifying the hashes of all the files in a repository that are not in .hg or .git directories.

The reason this is important for us to all figure out is that if the current unofficial mirrors for peps and cpython pass verification then we can skip the conversion steps and simply make the unofficial mirrors the official repositories (on top of making sure any conversion succeeds).