##// END OF EJS Templates
repoview: improve performance for computehidden (issue4206)...
Sean Farley -
r20939:388af5d4 default
parent child Browse files
Show More
@@ -10,6 +10,7 b' import copy'
10 import phases
10 import phases
11 import util
11 import util
12 import obsolete
12 import obsolete
13 import tags as tagsmod
13
14
14
15
15 def hideablerevs(repo):
16 def hideablerevs(repo):
@@ -35,9 +36,10 b' def computehidden(repo):'
35 blockers.append(par.rev())
36 blockers.append(par.rev())
36 for bm in repo._bookmarks.values():
37 for bm in repo._bookmarks.values():
37 blockers.append(repo[bm].rev())
38 blockers.append(repo[bm].rev())
38 tags = [n for t, n in repo.tags().iteritems()
39 tags = {}
39 if (repo.tagtype(t) and repo.tagtype(t) != 'global')]
40 tagsmod.readlocaltags(repo.ui, repo, tags, {})
40 blockers.extend(repo[t].rev() for t in tags)
41 if tags:
42 blockers.extend(repo[t[0]].rev() for t in tags.values())
41 blocked = cl.ancestors(blockers, inclusive=True)
43 blocked = cl.ancestors(blockers, inclusive=True)
42 return frozenset(r for r in hideable if r not in blocked)
44 return frozenset(r for r in hideable if r not in blocked)
43 return frozenset()
45 return frozenset()
General Comments 0
You need to be logged in to leave comments. Login now