touch: make __touch-noise__ extra field be bytes stable
authorAnton Shestakov <av6@dwimlabs.net>
Fri, 27 Mar 2020 17:37:03 +0700
branchstable
changeset 5213 d5544ebf5836
parent 5210 b9b71fdea693
child 5214 d7aed9675db6
touch: make __touch-noise__ extra field be bytes
hgext3rd/evolve/cmdrewrite.py
--- a/hgext3rd/evolve/cmdrewrite.py	Wed Mar 25 17:44:08 2020 -0400
+++ b/hgext3rd/evolve/cmdrewrite.py	Fri Mar 27 17:37:03 2020 +0700
@@ -1407,7 +1407,7 @@
     for r in revs:
         ctx = repo[r]
         extra = ctx.extra().copy()
-        extra[b'__touch-noise__'] = random.randint(0, 0xffffffff)
+        extra[b'__touch-noise__'] = b'%d' % random.randint(0, 0xffffffff)
         # search for touched parent
         p1 = ctx.p1().node()
         p2 = ctx.p2().node()