mercurial/templatefuncs.py
changeset 40935 4591c9791a82
parent 40934 d3e688b9ef2e
child 41720 6704696141b8
--- a/mercurial/templatefuncs.py	Wed Dec 12 22:19:57 2018 +0900
+++ b/mercurial/templatefuncs.py	Wed Dec 12 22:45:02 2018 +0900
@@ -609,7 +609,7 @@
 
     match = patre.search(src)
     if not match:
-        return
+        return templateutil.mappingnone()
 
     lm = {b'0': match.group(0)}
     lm.update((b'%d' % i, v) for i, v in enumerate(match.groups(), 1))