# HG changeset patch # User Angel Ezquerra # Date 1334316945 -7200 # Node ID 432f198600c6a4f9af1016c4c4045a1617063ff8 # Parent 9e02e032b5229c716b516568f35980c616217861 revset: make matching keyword not match summary when matching for description diff -r 9e02e032b522 -r 432f198600c6 mercurial/revset.py --- 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