Mercurial > hg
changeset 16444:432f198600c6
revset: make matching keyword not match summary when matching for description
author | Angel Ezquerra <angel.ezquerra@gmail.com> |
---|---|
date | Fri, 13 Apr 2012 13:35:45 +0200 |
parents | 9e02e032b522 |
children | 453c8670566c |
files | mercurial/revset.py |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/revset.py Thu Mar 22 21:12:15 2012 +0100 +++ b/mercurial/revset.py Fri Apr 13 13:35:45 2012 +0200 @@ -945,6 +945,9 @@ field = 'user' fields.append(field) fields = set(fields) + if 'summary' in fields and 'description' in fields: + # If a revision matches its description it also matches its summary + fields.discard('summary') # We may want to match more than one field # Each field will be matched with its own "getfield" function