diff mercurial/repair.py @ 18121:f8a13f061a8a

branchmap: extract updatebranchcache from repo
author Pierre-Yves David <pierre-yves.david@logilab.fr>
date Thu, 20 Dec 2012 14:45:17 +0100
parents fe8caf28d580
children 4499ba5ac35c
line wrap: on
line diff
--- 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