Mercurial > hg
changeset 16452:8a72805034d5
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.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Tue, 17 Apr 2012 15:10:33 +0200 |
parents | 9c431cfdca12 |
children | d2a865d4b963 |
files | mercurial/revset.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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)