mercurial/revset.py
changeset 16453 d2a865d4b963
parent 16452 8a72805034d5
child 16467 7f59900e3f8b
equal deleted inserted replaced
16452:8a72805034d5 16453:d2a865d4b963
   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