Mercurial > public > mercurial-scm > hg
comparison mercurial/revset.py @ 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 | b4b0c6931e11 |
children | 453c8670566c |
comparison
equal
deleted
inserted
replaced
16443:9e02e032b522 | 16444:432f198600c6 |
---|---|
943 else: | 943 else: |
944 if field == 'author': | 944 if field == 'author': |
945 field = 'user' | 945 field = 'user' |
946 fields.append(field) | 946 fields.append(field) |
947 fields = set(fields) | 947 fields = set(fields) |
948 if 'summary' in fields and 'description' in fields: | |
949 # If a revision matches its description it also matches its summary | |
950 fields.discard('summary') | |
948 | 951 |
949 # We may want to match more than one field | 952 # We may want to match more than one field |
950 # Each field will be matched with its own "getfield" function | 953 # Each field will be matched with its own "getfield" function |
951 # which will be added to the getfieldfuncs array of functions | 954 # which will be added to the getfieldfuncs array of functions |
952 getfieldfuncs = [] | 955 getfieldfuncs = [] |