revset: use list instead of tuple for compatibility with python before 2.6
authorThomas Arendsen Hein <thomas@intevation.de>
Tue, 17 Apr 2012 15:10:33 +0200
changeset 16452 8a72805034d5
parent 16451 9c431cfdca12
child 16453 d2a865d4b963
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.
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)