mercurial/revset.py
branchstable
changeset 14354 c66ba016ebb8
parent 14353 afb2ed5b37a2
child 14355 8fdc9dd8264b
equal deleted inserted replaced
14353:afb2ed5b37a2 14354:c66ba016ebb8
   364     return [r for r in subset if dm(repo[r].date()[0])]
   364     return [r for r in subset if dm(repo[r].date()[0])]
   365 
   365 
   366 def keyword(repo, subset, x):
   366 def keyword(repo, subset, x):
   367     """``keyword(string)``
   367     """``keyword(string)``
   368     Search commit message, user name, and names of changed files for
   368     Search commit message, user name, and names of changed files for
   369     string.
   369     string. The match is case-insensitive.
   370     """
   370     """
   371     # i18n: "keyword" is a keyword
   371     # i18n: "keyword" is a keyword
   372     kw = getstring(x, _("keyword requires a string")).lower()
   372     kw = getstring(x, _("keyword requires a string")).lower()
   373     l = []
   373     l = []
   374     for r in subset:
   374     for r in subset:
   405     n = getstring(x, _("author requires a string")).lower()
   405     n = getstring(x, _("author requires a string")).lower()
   406     return [r for r in subset if n in repo[r].user().lower()]
   406     return [r for r in subset if n in repo[r].user().lower()]
   407 
   407 
   408 def user(repo, subset, x):
   408 def user(repo, subset, x):
   409     """``user(string)``
   409     """``user(string)``
   410     User name is string.
   410     User name contains string. The match is case-insensitive.
   411     """
   411     """
   412     return author(repo, subset, x)
   412     return author(repo, subset, x)
   413 
   413 
   414 def hasfile(repo, subset, x):
   414 def hasfile(repo, subset, x):
   415     """``file(pattern)``
   415     """``file(pattern)``