diff hgext3rd/topic/compat.py @ 6697:4c6d35f92469 stable

topic: handle commitstatus() with opts=None for hg <= 6.5 too See also d13cfd9eb6c0.
author Zeger Van de Vannet <zeger@vandevan.net>
date Tue, 06 Feb 2024 08:59:43 +0000
parents 40875ca5e724
children 71c4b6c2bcdc
line wrap: on
line diff
--- a/hgext3rd/topic/compat.py	Wed Feb 07 14:03:04 2024 -0300
+++ b/hgext3rd/topic/compat.py	Tue Feb 06 08:59:43 2024 +0000
@@ -59,6 +59,8 @@
             def _orig(repo, node, branch, bheads=None, tip=None, **opts):
                 opts = pycompat.byteskwargs(opts)
                 return orig(repo, node, branch, bheads=bheads, tip=tip, opts=opts)
+            if opts is None:
+                opts = {}
             opts = pycompat.strkwargs(opts)
             return overridefn(_orig, repo, node, branch, bheads=bheads, tip=tip, **opts)
         extensions.wrapfunction(cmdutil, 'commitstatus', _override)