--- a/mercurial/utils/cborutil.py Tue Sep 04 20:48:22 2018 -0400
+++ b/mercurial/utils/cborutil.py Tue Sep 04 22:29:38 2018 -0400
@@ -10,6 +10,8 @@
import struct
import sys
+from .. import pycompat
+
# Very short very of RFC 7049...
#
# Each item begins with a byte. The 3 high bits of that byte denote the
@@ -190,6 +192,7 @@
STREAM_ENCODERS = {
bytes: streamencodebytestring,
int: streamencodeint,
+ pycompat.long: streamencodeint,
list: streamencodearray,
tuple: streamencodearray,
dict: streamencodemap,