changeset 19839:a32ef044b99a

branchmap: stop looking for stripped branch Since repoview in 2.5 we do not make special call to `branchmap` when stripping. We just recompute the branchmap from a lower subset that still has valid branchmap. So I'm dropping this dead code.
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Mon, 30 Sep 2013 17:42:38 +0200
parents 23386881abeb
children b00ba31313c3
files mercurial/branchmap.py
diffstat 1 files changed, 0 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/branchmap.py	Mon Sep 30 17:31:39 2013 +0200
+++ b/mercurial/branchmap.py	Mon Sep 30 17:42:38 2013 +0200
@@ -198,17 +198,6 @@
                 self.tipnode = cl.node(tiprev)
                 self.tiprev = tiprev
 
-        # There may be branches that cease to exist when the last commit in the
-        # branch was stripped.  This code filters them out.  Note that the
-        # branch that ceased to exist may not be in newbranches because
-        # newbranches is the set of candidate heads, which when you strip the
-        # last commit in a branch will be the parent branch.
-        for branch in self.keys():
-            nodes = [head for head in self[branch]
-                     if cl.hasnode(head)]
-            if not nodes:
-                del self[branch]
-
         if not self.validfor(repo):
             # cache key are not valid anymore
             self.tipnode = nullid