changeset 5213:d5544ebf5836 stable

touch: make __touch-noise__ extra field be bytes
author Anton Shestakov <av6@dwimlabs.net>
date Fri, 27 Mar 2020 17:37:03 +0700
parents b9b71fdea693
children d7aed9675db6
files hgext3rd/evolve/cmdrewrite.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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()