mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
repoview: use repo.revs() instead of a private revset method
Breaks an import cycle.
This commit is contained in:
parent
888bc814fa
commit
859551f9b1
@ -9,7 +9,7 @@
|
||||
import copy
|
||||
import phases
|
||||
import util
|
||||
import obsolete, revset
|
||||
import obsolete
|
||||
|
||||
|
||||
def hideablerevs(repo):
|
||||
@ -28,8 +28,9 @@ def computehidden(repo):
|
||||
cl = repo.changelog
|
||||
firsthideable = min(hideable)
|
||||
revs = cl.revs(start=firsthideable)
|
||||
blockers = [r for r in revset._children(repo, revs, hideable)
|
||||
if r not in hideable]
|
||||
tofilter = repo.revs(
|
||||
'(%ld) and children(%ld)', list(revs), list(hideable))
|
||||
blockers = [r for r in tofilter if r not in hideable]
|
||||
for par in repo[None].parents():
|
||||
blockers.append(par.rev())
|
||||
for bm in repo._bookmarks.values():
|
||||
|
@ -38,5 +38,4 @@ these may expose other cycles.
|
||||
mercurial/ui.py mixed imports
|
||||
stdlib: formatter
|
||||
relative: config, error, scmutil, util
|
||||
Import cycle: mercurial.repoview -> mercurial.revset -> mercurial.repoview
|
||||
Import cycle: mercurial.cmdutil -> mercurial.context -> mercurial.subrepo -> mercurial.cmdutil -> mercurial.cmdutil
|
||||
|
Loading…
Reference in New Issue
Block a user