$ 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-gitSenthil has also suggested verifying the hashes of all the files in a repository that are not in .hg or .git directories.