diff extensions/kwarchive.py @ 310:6932e63311c4

FIX: Always convert reST style keywords to a strings explicitely. There are recently added keywords (e.g. HGlatesttagdistance) that have a numeric value and cannot replaced. Always convert all values to strings before replacing.
author Franz Glasner <hg@dom66.de>
date Thu, 31 Jan 2019 13:08:26 +0100
parents f8aa592b344e
children 09be5e3d92d0
line wrap: on
line diff
--- a/extensions/kwarchive.py	Wed Jan 30 20:57:41 2019 +0100
+++ b/extensions/kwarchive.py	Thu Jan 31 13:08:26 2019 +0100
@@ -532,7 +532,7 @@
                     data = data.replace(filekw, filevalue)
                 if matcher_rst(rel_name_in_subrepo):
                     filekw = "%sVCS%s%s" % (_MARKER_RST, kw, _MARKER_RST)
-                    filevalue = value
+                    filevalue = "%s" % value   # always convert to a string
                     data = data.replace(filekw, filevalue)
         return data