diff -r b5d7e7d5c573 -r 91f0677dc920 mercurial/repair.py --- a/mercurial/repair.py Thu Sep 14 11:16:47 2017 -0700 +++ b/mercurial/repair.py Thu Sep 14 11:16:57 2017 -0700 @@ -38,7 +38,7 @@ totalhash = hashlib.sha1(''.join(allhashes)).hexdigest() name = "%s/%s-%s-%s.hg" % (backupdir, short(node), totalhash[:8], suffix) - cgversion = changegroup.safeversion(repo) + cgversion = changegroup.localversion(repo) comp = None if cgversion != '01': bundletype = "HG20"