equal
deleted
inserted
replaced
950 fields.discard('summary') |
950 fields.discard('summary') |
951 |
951 |
952 # We may want to match more than one field |
952 # We may want to match more than one field |
953 # Not all fields take the same amount of time to be matched |
953 # Not all fields take the same amount of time to be matched |
954 # Sort the selected fields in order of increasing matching cost |
954 # Sort the selected fields in order of increasing matching cost |
955 fieldorder = ('phase parents user date branch summary files description' |
955 fieldorder = ['phase', 'parents', 'user', 'date', 'branch', 'summary', |
956 ' substate').split() |
956 'files', 'description', 'substate'] |
957 def fieldkeyfunc(f): |
957 def fieldkeyfunc(f): |
958 try: |
958 try: |
959 return fieldorder.index(f) |
959 return fieldorder.index(f) |
960 except ValueError: |
960 except ValueError: |
961 # assume an unknown field is very costly |
961 # assume an unknown field is very costly |