##// END OF EJS Templates
cvsps: wrap cmp methods (deprecated) in functools.cmp_to_key...
Augie Fackler -
r37903:fe148d75 default
parent child Browse files
Show More
@@ -6,6 +6,7 b''
6 # GNU General Public License version 2 or any later version.
6 # GNU General Public License version 2 or any later version.
7 from __future__ import absolute_import
7 from __future__ import absolute_import
8
8
9 import functools
9 import os
10 import os
10 import re
11 import re
11
12
@@ -653,7 +654,7 b' def createchangeset(ui, log, fuzz=60, me'
653 return 0
654 return 0
654
655
655 for c in changesets:
656 for c in changesets:
656 c.entries.sort(entitycompare)
657 c.entries.sort(key=functools.cmp_to_key(entitycompare))
657
658
658 # Sort changesets by date
659 # Sort changesets by date
659
660
@@ -706,7 +707,7 b' def createchangeset(ui, log, fuzz=60, me'
706 d = c(len(l.branchpoints), len(r.branchpoints))
707 d = c(len(l.branchpoints), len(r.branchpoints))
707 return d
708 return d
708
709
709 changesets.sort(cscmp)
710 changesets.sort(key=functools.cmp_to_key(cscmp))
710
711
711 # Collect tags
712 # Collect tags
712
713
General Comments 0
You need to be logged in to leave comments. Login now