--- a/mercurial/repair.py Wed Dec 19 14:49:06 2012 +0100
+++ b/mercurial/repair.py Thu Dec 20 14:45:17 2012 +0100
@@ -6,7 +6,7 @@
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2 or any later version.
-from mercurial import changegroup
+from mercurial import changegroup, branchmap
from mercurial.node import short
from mercurial.i18n import _
import os
@@ -60,7 +60,7 @@
# It simplifies the logic around updating the branchheads cache if we only
# have to consider the effect of the stripped revisions and not revisions
# missing because the cache is out-of-date.
- repo.updatebranchcache()
+ branchmap.updatecache(repo)
cl = repo.changelog
# TODO handle undo of merge sets