Show More
@@ -52,20 +52,7 b' def computehidden(repo):' | |||
|
52 | 52 | hideable = hideablerevs(repo) |
|
53 | 53 | if hideable: |
|
54 | 54 | cl = repo.changelog |
|
55 | firsthideable = min(hideable) | |
|
56 | revs = cl.revs(start=firsthideable) | |
|
57 | tofilter = repo.revs( | |
|
58 | '(%ld) and children(%ld)', list(revs), list(hideable)) | |
|
59 | blockers = [r for r in tofilter if r not in hideable] | |
|
60 | for par in repo[None].parents(): | |
|
61 | blockers.append(par.rev()) | |
|
62 | for bm in repo._bookmarks.values(): | |
|
63 | blockers.append(repo[bm].rev()) | |
|
64 | tags = {} | |
|
65 | tagsmod.readlocaltags(repo.ui, repo, tags, {}) | |
|
66 | if tags: | |
|
67 | blockers.extend(repo[t[0]].rev() for t in tags.values()) | |
|
68 | blocked = cl.ancestors(blockers, inclusive=True) | |
|
55 | blocked = cl.ancestors(_gethiddenblockers(repo), inclusive=True) | |
|
69 | 56 | return frozenset(r for r in hideable if r not in blocked) |
|
70 | 57 | return frozenset() |
|
71 | 58 |
General Comments 0
You need to be logged in to leave comments.
Login now