mercurial/revset.py
changeset 26095 6eed95ca4c03
parent 26094 df41c7be16d6
child 26099 ab66c1dee405
equal deleted inserted replaced
26094:df41c7be16d6 26095:6eed95ca4c03
    85                         yield i
    85                         yield i
    86                         break
    86                         break
    87 
    87 
    88     return generatorset(iterate(), iterasc=True)
    88     return generatorset(iterate(), iterasc=True)
    89 
    89 
    90 def reachablerootspure(repo, minroot, roots, heads, includepath):
    90 def _reachablerootspure(repo, minroot, roots, heads, includepath):
    91     """return (heads(::<roots> and ::<heads>))
    91     """return (heads(::<roots> and ::<heads>))
    92 
    92 
    93     If includepath is True, return (<roots>::<heads>)."""
    93     If includepath is True, return (<roots>::<heads>)."""
    94     if not roots:
    94     if not roots:
    95         return []
    95         return []
   135     roots = list(roots)
   135     roots = list(roots)
   136     heads = list(heads)
   136     heads = list(heads)
   137     try:
   137     try:
   138         revs = repo.changelog.reachableroots(minroot, heads, roots, includepath)
   138         revs = repo.changelog.reachableroots(minroot, heads, roots, includepath)
   139     except AttributeError:
   139     except AttributeError:
   140         revs = reachablerootspure(repo, minroot, roots, heads, includepath)
   140         revs = _reachablerootspure(repo, minroot, roots, heads, includepath)
   141     revs = baseset(revs)
   141     revs = baseset(revs)
   142     revs.sort()
   142     revs.sort()
   143     return revs
   143     return revs
   144 
   144 
   145 elements = {
   145 elements = {