Show More
@@ -198,17 +198,6 b' class branchcache(dict):' | |||||
198 | self.tipnode = cl.node(tiprev) |
|
198 | self.tipnode = cl.node(tiprev) | |
199 | self.tiprev = tiprev |
|
199 | self.tiprev = tiprev | |
200 |
|
200 | |||
201 | # There may be branches that cease to exist when the last commit in the |
|
|||
202 | # branch was stripped. This code filters them out. Note that the |
|
|||
203 | # branch that ceased to exist may not be in newbranches because |
|
|||
204 | # newbranches is the set of candidate heads, which when you strip the |
|
|||
205 | # last commit in a branch will be the parent branch. |
|
|||
206 | for branch in self.keys(): |
|
|||
207 | nodes = [head for head in self[branch] |
|
|||
208 | if cl.hasnode(head)] |
|
|||
209 | if not nodes: |
|
|||
210 | del self[branch] |
|
|||
211 |
|
||||
212 | if not self.validfor(repo): |
|
201 | if not self.validfor(repo): | |
213 | # cache key are not valid anymore |
|
202 | # cache key are not valid anymore | |
214 | self.tipnode = nullid |
|
203 | self.tipnode = nullid |
General Comments 0
You need to be logged in to leave comments.
Login now