# HG changeset patch # User Thomas Arendsen Hein # Date 1334668233 -7200 # Node ID 8a72805034d5b5e251d0e161b4094bba4687c29b # Parent 9c431cfdca128ff0be522a4560032e4223cfd99b revset: use list instead of tuple for compatibility with python before 2.6 'string elements'.split() instead of explicitly typing a list of strings is used. This is done in other parts of Mercurial code, too. diff -r 9c431cfdca12 -r 8a72805034d5 mercurial/revset.py --- a/mercurial/revset.py Mon Apr 16 16:50:25 2012 -0500 +++ b/mercurial/revset.py Tue Apr 17 15:10:33 2012 +0200 @@ -952,8 +952,8 @@ # 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',) + fieldorder = ('phase parents user date branch summary files description' + ' substate').split() def fieldkeyfunc(f): try: return fieldorder.index(f)