mercurial/scmutil.py
changeset 46039 b9ebe0bfed4e
parent 45942 89a2afe31e82
child 46040 9ee791f3278f
equal deleted inserted replaced
46038:8dca9051a859 46039:b9ebe0bfed4e
  2298 
  2298 
  2299     return revs
  2299     return revs
  2300 
  2300 
  2301 
  2301 
  2302 def bookmarkrevs(repo, mark):
  2302 def bookmarkrevs(repo, mark):
  2303     """
  2303     """Select revisions reachable by a given bookmark
  2304     Select revisions reachable by a given bookmark
  2304 
       
  2305     If the bookmarked revision isn't a head, an empty set will be returned.
  2305     """
  2306     """
  2306     return repo.revs(
  2307     return repo.revs(
  2307         b"ancestors(bookmark(%s)) - "
  2308         b"ancestors(bookmark(%s)) - "
  2308         b"ancestors(head() and not bookmark(%s)) - "
  2309         b"ancestors(head() and not bookmark(%s)) - "
  2309         b"ancestors(bookmark() and not bookmark(%s))",
  2310         b"ancestors(bookmark() and not bookmark(%s))",