Mercurial > evolve
comparison hgext3rd/topic/compat.py @ 6569:9a55b007faf6
compat: make sure to actually pass tip to commitstatus()
Follow-up for d13cfd9eb6c0.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Thu, 12 Oct 2023 14:04:37 -0300 |
parents | d13cfd9eb6c0 |
children | 5b23394b03aa |
comparison
equal
deleted
inserted
replaced
6567:851f1af306a5 | 6569:9a55b007faf6 |
---|---|
55 extensions.wrapfunction(cmdutil, 'commitstatus', overridefn) | 55 extensions.wrapfunction(cmdutil, 'commitstatus', overridefn) |
56 elif r'tip' in code.co_varnames: | 56 elif r'tip' in code.co_varnames: |
57 # hg <= 6.5 (489268c8ee7e) | 57 # hg <= 6.5 (489268c8ee7e) |
58 def _override(orig, repo, node, branch, bheads=None, tip=None, opts=None): | 58 def _override(orig, repo, node, branch, bheads=None, tip=None, opts=None): |
59 def _orig(repo, node, branch, bheads=None, tip=None, **opts): | 59 def _orig(repo, node, branch, bheads=None, tip=None, **opts): |
60 return orig(repo, node, branch, bheads=bheads, tip=None, opts=opts) | 60 return orig(repo, node, branch, bheads=bheads, tip=tip, opts=opts) |
61 opts = pycompat.strkwargs(opts) | 61 opts = pycompat.strkwargs(opts) |
62 return overridefn(_orig, repo, node, branch, bheads=bheads, tip=None, **opts) | 62 return overridefn(_orig, repo, node, branch, bheads=bheads, tip=tip, **opts) |
63 extensions.wrapfunction(cmdutil, 'commitstatus', _override) | 63 extensions.wrapfunction(cmdutil, 'commitstatus', _override) |
64 else: | 64 else: |
65 # hg <= 5.6 (976b26bdd0d8) | 65 # hg <= 5.6 (976b26bdd0d8) |
66 def _override(orig, repo, node, branch, bheads=None, opts=None): | 66 def _override(orig, repo, node, branch, bheads=None, opts=None): |
67 def _orig(repo, node, branch, bheads=None, tip=None, **opts): | 67 def _orig(repo, node, branch, bheads=None, tip=None, **opts): |