##// END OF EJS Templates
repoview: make the conversion from node to rev explicit while computing hidden...
Pierre-Yves David -
r21059:d7e233df default
parent child Browse files
Show More
@@ -27,6 +27,7 b' def _gethiddenblockers(repo):'
27 hideable = hideablerevs(repo)
27 hideable = hideablerevs(repo)
28 blockers = []
28 blockers = []
29 if hideable:
29 if hideable:
30 # We use cl to avoid recursive lookup from repo[xxx]
30 cl = repo.changelog
31 cl = repo.changelog
31 firsthideable = min(hideable)
32 firsthideable = min(hideable)
32 revs = cl.revs(start=firsthideable)
33 revs = cl.revs(start=firsthideable)
@@ -36,11 +37,11 b' def _gethiddenblockers(repo):'
36 for par in repo[None].parents():
37 for par in repo[None].parents():
37 blockers.append(par.rev())
38 blockers.append(par.rev())
38 for bm in repo._bookmarks.values():
39 for bm in repo._bookmarks.values():
39 blockers.append(repo[bm].rev())
40 blockers.append(cl.rev(bm))
40 tags = {}
41 tags = {}
41 tagsmod.readlocaltags(repo.ui, repo, tags, {})
42 tagsmod.readlocaltags(repo.ui, repo, tags, {})
42 if tags:
43 if tags:
43 blockers.extend(repo[t[0]].rev() for t in tags.values())
44 blockers.extend(cl.rev(t[0]) for t in tags.values())
44 return blockers
45 return blockers
45
46
46 def computehidden(repo):
47 def computehidden(repo):
General Comments 0
You need to be logged in to leave comments. Login now