'''return the tipmost branch head in heads'''
tip = heads[-1]
for h in reversed(heads):
- if not repo[h].closesbranch():
+ if 'close' not in repo.changelog.read(h)[5]:
tip = h
break
return tip
def verify_heads(ui,repo,cache,force):
- branches={bn: branchtip(repo, heads)
- for bn, heads in repo.branchmap().iteritems()}
+ branches={}
+ for bn, heads in repo.branchmap().iteritems():
+ branches[bn] = branchtip(repo, heads)
l=[(-repo.changelog.rev(n), n, t) for t, n in branches.items()]
l.sort()