Mercurial > evolve
changeset 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 | 75c048fdcd09 |
children | c329bd4beaa6 ddebaa161306 |
files | hgext3rd/topic/compat.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
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)