diff -r 4499ba5ac35c -r 084074648755 mercurial/localrepo.py --- a/mercurial/localrepo.py Sat Dec 15 20:08:13 2012 +0200 +++ b/mercurial/localrepo.py Sat Jan 05 16:50:12 2013 +0200 @@ -1391,7 +1391,10 @@ changes to stay in memory (waiting for the next unlock), or vanish completely. ''' - pass + # 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. + branchmap.updatecache(self) @unfilteredmethod def destroyed(self, newheadnodes=None):