diff hgext3rd/topic/compat.py @ 6570:5b23394b03aa

compat: hg 5.6 doesn't have tip as an argument to commitstatus() at all While this patch is not necessary, it makes the code slightly clearer.
author Anton Shestakov <av6@dwimlabs.net>
date Thu, 12 Oct 2023 14:05:57 -0300
parents 9a55b007faf6
children 40875ca5e724
line wrap: on
line diff
--- a/hgext3rd/topic/compat.py	Thu Oct 12 14:04:37 2023 -0300
+++ b/hgext3rd/topic/compat.py	Thu Oct 12 14:05:57 2023 -0300
@@ -64,12 +64,12 @@
     else:
         # hg <= 5.6 (976b26bdd0d8)
         def _override(orig, repo, node, branch, bheads=None, opts=None):
-            def _orig(repo, node, branch, bheads=None, tip=None, **opts):
+            def _orig(repo, node, branch, bheads=None, **opts):
                 return orig(repo, node, branch, bheads=bheads, opts=opts)
             if opts is None:
                 opts = {}
             opts = pycompat.strkwargs(opts)
-            return overridefn(_orig, repo, node, branch, bheads=bheads, tip=None, **opts)
+            return overridefn(_orig, repo, node, branch, bheads=bheads, **opts)
         extensions.wrapfunction(cmdutil, 'commitstatus', _override)
 
 if util.safehasattr(error, 'InputError'):