diff --git a/mercurial/revset.py b/mercurial/revset.py --- a/mercurial/revset.py +++ b/mercurial/revset.py @@ -952,8 +952,8 @@ def matching(repo, subset, x): # We may want to match more than one field # Not all fields take the same amount of time to be matched # Sort the selected fields in order of increasing matching cost - fieldorder = ('phase parents user date branch summary files description' - ' substate').split() + fieldorder = ['phase', 'parents', 'user', 'date', 'branch', 'summary', + 'files', 'description', 'substate'] def fieldkeyfunc(f): try: return fieldorder.index(f)