##// END OF EJS Templates
revset: make matching() work on python 2.4...
Patrick Mezard -
r16453:d2a865d4 default
parent child Browse files
Show More
@@ -952,8 +952,8 b' def matching(repo, subset, x):'
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)
General Comments 0
You need to be logged in to leave comments. Login now