mercurial/revset.py
changeset 15134 81adf7777f8f
parent 15133 b1c62c754bf8
child 15135 f19de58af225
equal deleted inserted replaced
15133:b1c62c754bf8 15134:81adf7777f8f
   233     """
   233     """
   234     # i18n: "author" is a keyword
   234     # i18n: "author" is a keyword
   235     n = getstring(x, _("author requires a string")).lower()
   235     n = getstring(x, _("author requires a string")).lower()
   236     return [r for r in subset if n in repo[r].user().lower()]
   236     return [r for r in subset if n in repo[r].user().lower()]
   237 
   237 
   238 def bisected(repo, subset, x):
   238 def bisect(repo, subset, x):
   239     """``bisected(string)``
   239     """``bisect(string)``
   240     Changesets marked in the specified bisect state (good, bad, skip).
   240     Changesets marked in the specified bisect state (good, bad, skip).
   241     """
   241     """
   242     state = getstring(x, _("bisect requires a string")).lower()
   242     state = getstring(x, _("bisect requires a string")).lower()
   243     if state not in ('good', 'bad', 'skip'):
   243     if state not in ('good', 'bad', 'skip'):
   244         raise error.ParseError(_('invalid bisect state'))
   244         raise error.ParseError(_('invalid bisect state'))
   245     marked = set(repo.changelog.rev(n) for n in hbisect.load_state(repo)[state])
   245     marked = set(repo.changelog.rev(n) for n in hbisect.load_state(repo)[state])
   246     return [r for r in subset if r in marked]
   246     return [r for r in subset if r in marked]
       
   247 
       
   248 # Backward-compatibility
       
   249 # - no help entry so that we do not advertise it any more
       
   250 def bisected(repo, subset, x):
       
   251     return bisect(repo, subset, x)
   247 
   252 
   248 def bookmark(repo, subset, x):
   253 def bookmark(repo, subset, x):
   249     """``bookmark([name])``
   254     """``bookmark([name])``
   250     The named bookmark or all bookmarks.
   255     The named bookmark or all bookmarks.
   251     """
   256     """
   835     "adds": adds,
   840     "adds": adds,
   836     "all": getall,
   841     "all": getall,
   837     "ancestor": ancestor,
   842     "ancestor": ancestor,
   838     "ancestors": ancestors,
   843     "ancestors": ancestors,
   839     "author": author,
   844     "author": author,
       
   845     "bisect": bisect,
   840     "bisected": bisected,
   846     "bisected": bisected,
   841     "bookmark": bookmark,
   847     "bookmark": bookmark,
   842     "branch": branch,
   848     "branch": branch,
   843     "children": children,
   849     "children": children,
   844     "closed": closed,
   850     "closed": closed,