mercurial/revset.py
changeset 26091 60bbd4f9abd1
parent 26060 4ee2af2194d4
child 26093 204131131766
equal deleted inserted replaced
26090:e5f2a2a095cb 26091:60bbd4f9abd1
   121         return reachable
   121         return reachable
   122     for rev in sorted(seen):
   122     for rev in sorted(seen):
   123         for parent in seen[rev]:
   123         for parent in seen[rev]:
   124             if parent in reachable:
   124             if parent in reachable:
   125                 reached(rev)
   125                 reached(rev)
   126     return baseset(sorted(reachable))
   126     reachable = baseset(reachable)
       
   127     reachable.sort()
       
   128     return reachable
   127 
   129 
   128 def reachableroots(repo, roots, heads, includepath=False):
   130 def reachableroots(repo, roots, heads, includepath=False):
   129     """return (heads(::<roots> and ::<heads>))
   131     """return (heads(::<roots> and ::<heads>))
   130 
   132 
   131     If includepath is True, return (<roots>::<heads>)."""
   133     If includepath is True, return (<roots>::<heads>)."""