--- a/hgext/convert/cvsps.py Tue Mar 14 23:46:48 2017 -0700 +++ b/hgext/convert/cvsps.py Tue Mar 14 23:48:08 2017 -0700 @@ -622,7 +622,7 @@ # Sort changesets by date odd = set() - def cscmp(l, r, odd=odd): + def cscmp(l, r): d = sum(l.date) - sum(r.date) if d: return d